casting lua_tointeger

This commit is contained in:
nhmall
2019-11-29 17:38:51 -05:00
parent f41530bea8
commit 453745701f
3 changed files with 11 additions and 7 deletions
+2 -1
View File
@@ -484,8 +484,9 @@ const char *msgid;
if (!synopsis && !text) {
int nelems;
lua_len(L, -1);
nelems = LUA_INTCAST(lua_tointeger(L, -1));
nelems = (int) lua_tointeger(L, -1);
lua_pop(L, 1);
if (nelems < 2) {
impossible("com_pager: questtext[%s][%s] in %s in not an array of strings", section, msgid, QTEXT_FILE);