diff --git a/src/common/runtime.cpp b/src/common/runtime.cpp index 466696599..11b6d2dae 100644 --- a/src/common/runtime.cpp +++ b/src/common/runtime.cpp @@ -241,7 +241,7 @@ double luax_numberflag(lua_State *L, int table_index, const char *key, double de { lua_getfield(L, table_index, key); - int retval; + double retval; if (!lua_isnumber(L, -1)) retval = defaultValue; else