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 /ltm.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 'ltm.h')
| -rw-r--r-- | ltm.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -51,7 +51,7 @@ typedef enum { | |||
| 51 | ** corresponding metamethod field. (Bit 6 of the flag indicates that | 51 | ** corresponding metamethod field. (Bit 6 of the flag indicates that |
| 52 | ** the table is using the dummy node; bit 7 is used for 'isrealasize'.) | 52 | ** the table is using the dummy node; bit 7 is used for 'isrealasize'.) |
| 53 | */ | 53 | */ |
| 54 | #define maskflags (~(~0u << (TM_EQ + 1))) | 54 | #define maskflags cast_byte(~(~0u << (TM_EQ + 1))) |
| 55 | 55 | ||
| 56 | 56 | ||
| 57 | /* | 57 | /* |
| @@ -81,8 +81,8 @@ LUAI_FUNC void luaT_init (lua_State *L); | |||
| 81 | 81 | ||
| 82 | LUAI_FUNC void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, | 82 | LUAI_FUNC void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, |
| 83 | const TValue *p2, const TValue *p3); | 83 | const TValue *p2, const TValue *p3); |
| 84 | LUAI_FUNC int luaT_callTMres (lua_State *L, const TValue *f, | 84 | LUAI_FUNC lu_byte luaT_callTMres (lua_State *L, const TValue *f, |
| 85 | const TValue *p1, const TValue *p2, StkId p3); | 85 | const TValue *p1, const TValue *p2, StkId p3); |
| 86 | LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, | 86 | LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, |
| 87 | StkId res, TMS event); | 87 | StkId res, TMS event); |
| 88 | LUAI_FUNC void luaT_tryconcatTM (lua_State *L); | 88 | LUAI_FUNC void luaT_tryconcatTM (lua_State *L); |
