From 96c716d74b5637412927d657cc65cbafabd0f757 Mon Sep 17 00:00:00 2001 From: <> Date: Tue, 21 Mar 2017 15:40:52 -0700 Subject: [PATCH] Changed unsigned int to unsigned long to truly handle an unreasonably long run. --- includes/dbquery.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/dbquery.c b/includes/dbquery.c index f595e68..7ae8dbb 100644 --- a/includes/dbquery.c +++ b/includes/dbquery.c @@ -68,10 +68,10 @@ static inline void print_tblheader(const char *c) { // 21,474,836.47 seconds // someone would need to idle in-game for 248 days static void print_time(const unsigned char *strcs) { - const unsigned int num = strtoul((const char*)strcs, NULL, 10); - unsigned int s = num/100; - const unsigned int cs = num % 100; - const unsigned int min = s/60; + const unsigned long num = strtoul((const char*)strcs, NULL, 10); + unsigned long s = num/100; + const unsigned long cs = num % 100; + const unsigned long min = s/60; s = s % 60; if (min > 0) { printf("