From c1aca51fc3815de8262381cd2235b1b4e1349841 Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Sat, 19 Jun 2021 18:32:56 -0700
Subject: [PATCH] Fix basic warnings

---
 src/lua_inputlib.c | 2 +-
 src/sdl/i_video.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lua_inputlib.c b/src/lua_inputlib.c
index 2172022225..71eb1033f7 100644
--- a/src/lua_inputlib.c
+++ b/src/lua_inputlib.c
@@ -117,7 +117,7 @@ static int lib_setMouseGrab(lua_State *L)
 	return 0;
 }
 
-static boolean lib_getCursorPosition(lua_State *L)
+static int lib_getCursorPosition(lua_State *L)
 {
 	int x, y;
 	I_GetCursorPosition(&x, &y);
diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c
index c387e5a185..234585cf31 100644
--- a/src/sdl/i_video.c
+++ b/src/sdl/i_video.c
@@ -407,7 +407,7 @@ void I_UpdateMouseGrab(void)
 
 boolean I_GetMouseGrab(void)
 {
-	return SDL_GetWindowGrab(window);
+	return (boolean)SDL_GetWindowGrab(window);
 }
 
 void I_SetMouseGrab(boolean grab)
-- 
GitLab