mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-24 02:55:40 +08:00
avoid type mismatch in ?: operator
This commit is contained in:
parent
3c8c866ac1
commit
8b1c12005f
@ -414,7 +414,7 @@ static int h_counter(int argc, unsigned char **argv){
|
|||||||
#define MAX_COUNTER_TIME (0x793406fff)
|
#define MAX_COUNTER_TIME (0x793406fff)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#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
|
#endif
|
||||||
|
|
||||||
if(ch1.updated < 0 || ch1.updated >= MAX_COUNTER_TIME){
|
if(ch1.updated < 0 || ch1.updated >= MAX_COUNTER_TIME){
|
||||||
|
Loading…
Reference in New Issue
Block a user