From 4fa1ec6eb3871b332df0279260e07b7d5b59664c Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Wed, 4 Aug 2010 13:04:11 -0400 Subject: Cast to time_t for comparison because GCC complains about signdedness on 32-bit systems --- src/userprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 9239d752e..c5ce39c5b 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -79,7 +79,7 @@ void InspIRCd::DoBackgroundUserStuff() break; } - if (curr->registered != REG_ALL && (Time() > (curr->age + curr->MyClass->registration_timeout))) + if (curr->registered != REG_ALL && (Time() > (time_t)(curr->age + curr->MyClass->registration_timeout))) { /* * registration timeout -- didnt send USER/NICK/HOST -- cgit v1.3.1-10-gc9f91