aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 873820d3..8ab2f024 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -141,7 +141,7 @@ static int luaB_getglobal (lua_State *L) {
141static int gettag (lua_State *L, int narg) { 141static 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);