diff options
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -141,7 +141,7 @@ static int luaB_getglobal (lua_State *L) { | |||
141 | static int gettag (lua_State *L, int narg) { | 141 | static int gettag (lua_State *L, int narg) { |
142 | switch (lua_rawtag(L, narg)) { | 142 | switch (lua_rawtag(L, narg)) { |
143 | case LUA_TNUMBER: | 143 | case LUA_TNUMBER: |
144 | return (int)lua_tonumber(L, narg); | 144 | return (int)(lua_tonumber(L, narg)); |
145 | case LUA_TSTRING: { | 145 | case LUA_TSTRING: { |
146 | const l_char *name = lua_tostring(L, narg); | 146 | const l_char *name = lua_tostring(L, narg); |
147 | int tag = lua_name2tag(L, name); | 147 | int tag = lua_name2tag(L, name); |