From 678c43ade34a5d84a4a4496a8731dd3b6cc5c5e8 Mon Sep 17 00:00:00 2001 From: James O'Neill Date: Mon, 18 Mar 2024 21:06:22 +0900 Subject: [PATCH] Fix r_glsl_dumpshader segfault In 05bc75558afbdf80289fddf9a330dd7382a07d0d only i should have been changed to unsigned to prevent the warning. Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/145 Signed-off-by: bones_was_here --- gl_rmain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 0226686d..a20f4c9b 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -1418,7 +1418,8 @@ void R_GLSL_Restart_f(cmd_state_t *cmd) static void R_GLSL_DumpShader_f(cmd_state_t *cmd) { - unsigned i, language, mode, dupe; + unsigned i; + int language, mode, dupe; char *text; shadermodeinfo_t *modeinfo; qfile_t *file; -- 2.39.2