From 8b1c12005f3c2aaa36fa84818df120a2859d705e Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Fri, 8 Apr 2016 15:08:18 +0300 Subject: [PATCH] avoid type mismatch in ?: operator --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index c174781..632acf8 100644 --- a/src/conf.c +++ b/src/conf.c @@ -414,7 +414,7 @@ static int h_counter(int argc, unsigned char **argv){ #define MAX_COUNTER_TIME (0x793406fff) #endif #else -#define MAX_COUNTER_TIME ((sizeof(time_t)>4)?0x793406fff:LONG_MAX) +#define MAX_COUNTER_TIME ((sizeof(time_t)>4)?(time_t)0x793406fff:(time_t)0x7fffffff) #endif if(ch1.updated < 0 || ch1.updated >= MAX_COUNTER_TIME){