From 43b67be8d52bc5b92362c95add2c87771bcc6971 Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 13 Oct 2023 21:52:31 -0700 Subject: [PATCH] Fix -Wsign-compare --- src/p_mobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 55de4ca5f..3e41807b4 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -13724,7 +13724,7 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj) static const size_t NUM_HANAGUMIHALL_NPC_STATES = sizeof(HANAGUMIHALL_NPC_STATES) / sizeof(statenum_t); // an invalid NPC ID leaves you with Alfonso - if (mthing->thing_args[0] < 0 || mthing->thing_args[0] >= NUM_HANAGUMIHALL_NPC_STATES) + if ((size_t)mthing->thing_args[0] >= NUM_HANAGUMIHALL_NPC_STATES) break; // pick the state based on the NPC ID