From 6f12a6e8bb2f610e5b0bb8a0bf8b51452d95a760 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 17 Mar 2012 03:10:19 +0000 Subject: [PATCH] - Fix signed/unsigned mismatch warned by GCC. SVN r3450 (trunk) --- src/p_acs.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 782075956..96c30c8fd 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -5255,6 +5255,9 @@ int DLevelScript::RunScript () STACK(1) = !STACK(1); break; + + + case PCD_NEGATEBINARY: STACK(1) = ~STACK(1); break; @@ -7400,11 +7403,11 @@ static void addDefered (level_info_t *i, acsdefered_t::EType type, int script, c def->next = i->defered; def->type = type; def->script = script; - for (j = 0; j < countof(def->args) && j < argcount; ++j) + for (j = 0; (size_t)j < countof(def->args) && j < argcount; ++j) { def->args[j] = args[j]; } - while (j < countof(def->args)) + while ((size_t)j < countof(def->args)) { def->args[j++] = 0; }