diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-31 16:46:07 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-31 16:46:07 -0300 |
commit | e1d072571ec6f9d830e575a2ecdc95fd43428e53 (patch) | |
tree | 830fab7f2acb9adaee2d63073d339cc9557a5437 /lbaselib.c | |
parent | 7651a5c6b2ee6ec59cadec6199319d482071f176 (diff) | |
download | lua-e1d072571ec6f9d830e575a2ecdc95fd43428e53.tar.gz lua-e1d072571ec6f9d830e575a2ecdc95fd43428e53.tar.bz2 lua-e1d072571ec6f9d830e575a2ecdc95fd43428e53.zip |
better syntax for type casts
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); |