diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-27 13:32:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-27 13:32:59 -0300 |
commit | 0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b (patch) | |
tree | 0ac634fed90877130b1f102bf4075af999de2158 /ltable.h | |
parent | 15231d4fb2f6984b25e0353ff46eda1a180b686d (diff) | |
download | lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.tar.gz lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.tar.bz2 lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.zip |
Added gcc option '-Wconversion'
No warnings for standard numerical types. Still pending alternative
numerical types.
Diffstat (limited to 'ltable.h')
-rw-r--r-- | ltable.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -20,7 +20,7 @@ | |||
20 | ** may have any of these metamethods. (First access that fails after the | 20 | ** may have any of these metamethods. (First access that fails after the |
21 | ** clearing will set the bit again.) | 21 | ** clearing will set the bit again.) |
22 | */ | 22 | */ |
23 | #define invalidateTMcache(t) ((t)->flags &= ~maskflags) | 23 | #define invalidateTMcache(t) ((t)->flags &= cast_byte(~maskflags)) |
24 | 24 | ||
25 | 25 | ||
26 | /* | 26 | /* |
@@ -137,10 +137,10 @@ | |||
137 | (*tag = (val)->tt_, *getArrVal(h,(k)) = (val)->value_) | 137 | (*tag = (val)->tt_, *getArrVal(h,(k)) = (val)->value_) |
138 | 138 | ||
139 | 139 | ||
140 | LUAI_FUNC int luaH_get (Table *t, const TValue *key, TValue *res); | 140 | LUAI_FUNC lu_byte luaH_get (Table *t, const TValue *key, TValue *res); |
141 | LUAI_FUNC int luaH_getshortstr (Table *t, TString *key, TValue *res); | 141 | LUAI_FUNC lu_byte luaH_getshortstr (Table *t, TString *key, TValue *res); |
142 | LUAI_FUNC int luaH_getstr (Table *t, TString *key, TValue *res); | 142 | LUAI_FUNC lu_byte luaH_getstr (Table *t, TString *key, TValue *res); |
143 | LUAI_FUNC int luaH_getint (Table *t, lua_Integer key, TValue *res); | 143 | LUAI_FUNC lu_byte luaH_getint (Table *t, lua_Integer key, TValue *res); |
144 | 144 | ||
145 | /* Special get for metamethods */ | 145 | /* Special get for metamethods */ |
146 | LUAI_FUNC const TValue *luaH_Hgetshortstr (Table *t, TString *key); | 146 | LUAI_FUNC const TValue *luaH_Hgetshortstr (Table *t, TString *key); |