From 732003bcb97d9a5cd152f39f9e98493d285bbd9d Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Thu, 14 Jan 2016 17:11:16 +0000
Subject: [PATCH] Quick fixes for unsigned-signed compiler warnings

probably not the most ideal way of doing this to be fair though
---
 src/dehacked.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/dehacked.c b/src/dehacked.c
index 09da3ee6ee..f3d1fa1bf4 100644
--- a/src/dehacked.c
+++ b/src/dehacked.c
@@ -674,11 +674,11 @@ static void readfreeslots(MYFILE *f)
 			else if (fastcmp(type, "SPR2"))
 			{
 				// Search if we already have an SPR2 by that name...
-				for (i = SPR2_FIRSTFREESLOT; i < free_spr2; i++)
+				for (i = SPR2_FIRSTFREESLOT; i < (int)free_spr2; i++)
 					if (memcmp(spr2names[i],word,4) == 0)
 						break;
 				// We found it? (Two mods using the same SPR2 name?) Then don't allocate another one.
-				if (i < free_spr2)
+				if (i < (int)free_spr2)
 					continue;
 				// Copy in the spr2 name and increment free_spr2.
 				if (free_spr2 < NUMPLAYERSPRITES) {
@@ -8551,7 +8551,7 @@ static inline int lib_getenum(lua_State *L)
 	}
 	else if (fastncmp("SPR2_",word,4)) {
 		p = word+5;
-		for (i = 0; i < free_spr2; i++)
+		for (i = 0; i < (fixed_t)free_spr2; i++)
 			if (!spr2names[i][4])
 			{
 				// special 3-char cases, e.g. SPR2_RUN
-- 
GitLab