Minor compilation and correctness fixes.
[srvx.git] / src / mod-helpserv.c
index 8e1fe1fd70c205f4c22a380faefddc038fbb9bfb..fec20c625d30c276488b3737dd98f81cc69f7239 100644 (file)
@@ -2962,7 +2962,7 @@ static HELPSERV_FUNC(cmd_modstats) {
         return 0;
     }
 
-    if (mod < 0 && abs(mod) > field[week]) {
+    if (mod < 0 && mod < -(int)field[week]) {
         helpserv_notice(user, "HSMSG_MODSTATS_NEGATIVE");
         return 0;
     }