From 2fc7e56951a1ec265ced00d1bf458eb80aacc54a Mon Sep 17 00:00:00 2001
From: Jaime Passos <lazymyuutsu@gmail.com>
Date: Wed, 12 Feb 2020 13:59:08 -0300
Subject: [PATCH] Cast Moment

---
 src/dehacked.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/dehacked.c b/src/dehacked.c
index 79d0b46dda..4d11472762 100644
--- a/src/dehacked.c
+++ b/src/dehacked.c
@@ -603,7 +603,7 @@ static void readfreeslots(MYFILE *f)
 					continue;
 
 				// We don't, so freeslot it.
-				if (lastcustomtol == MAXTOL) // Unless you have way too many, since they're flags.
+				if (lastcustomtol == (UINT32)MAXTOL) // Unless you have way too many, since they're flags.
 					deh_warning("Ran out of free typeoflevel slots!\n");
 				else
 				{
@@ -10454,7 +10454,7 @@ static inline int lib_freeslot(lua_State *L)
 
 			// We don't, so allocate a new one.
 			if (TYPEOFLEVEL[i].name == NULL) {
-				if (lastcustomtol == MAXTOL) // Unless you have way too many, since they're flags.
+				if (lastcustomtol == (UINT32)MAXTOL) // Unless you have way too many, since they're flags.
 					CONS_Alert(CONS_WARNING, "Ran out of free typeoflevel slots!\n");
 				else {
 					CONS_Printf("TypeOfLevel TOL_%s allocated.\n",word);
-- 
GitLab