From edc8204a61cc57c73810d13d6945deefdf789908 Mon Sep 17 00:00:00 2001 From: Emile Belanger Date: Tue, 5 Jul 2022 15:49:39 +0100 Subject: [PATCH] If the system uses very high memory addresses this error will be hit --- src/scripting/thingdef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/thingdef.cpp b/src/scripting/thingdef.cpp index 711ddbaea4..d170096fb6 100644 --- a/src/scripting/thingdef.cpp +++ b/src/scripting/thingdef.cpp @@ -318,7 +318,7 @@ static void CheckLabel(PClassActor *obj, FStateLabel *slb, int useflag, FName st auto state = slb->State; if (state != nullptr) { - if (intptr_t(state) <= 0xffff) + if (uintptr_t(state) <= 0xffff) { // can't do much here aside from printing a message and aborting. I_Error("Bad state label %s in actor %s", slb->Label.GetChars(), obj->TypeName.GetChars());