From e1a4bf4dd7bf1020c466d0e397b630ee18ee5e4f Mon Sep 17 00:00:00 2001 From: mazmazz Date: Wed, 19 Sep 2018 19:55:22 -0400 Subject: [PATCH] MP Lua: FadeMusic signed/unsigned comparison fix (buildbots) --- src/lua_baselib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua_baselib.c b/src/lua_baselib.c index ae746a1b..18c46247 100644 --- a/src/lua_baselib.c +++ b/src/lua_baselib.c @@ -2151,7 +2151,7 @@ static int lib_sFadeMusic(lua_State *L) source_volume = (INT32)luaL_checkinteger(L, 2); ms = (UINT32)luaL_checkinteger(L, 3); } - else if (luaL_optinteger(L, 3, UINT32_MAX) == UINT32_MAX) + else if (luaL_optinteger(L, 3, INT32_MAX) == INT32_MAX) { ms = (UINT32)luaL_checkinteger(L, 2); source_volume = -1;