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 /ldebug.c | |
| 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 'ldebug.c')
| -rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -63,7 +63,7 @@ static int getbaseline (const Proto *f, int pc, int *basepc) { | |||
| 63 | return f->linedefined; | 63 | return f->linedefined; |
| 64 | } | 64 | } |
| 65 | else { | 65 | else { |
| 66 | int i = cast_uint(pc) / MAXIWTHABS - 1; /* get an estimate */ | 66 | int i = pc / MAXIWTHABS - 1; /* get an estimate */ |
| 67 | /* estimate must be a lower bound of the correct base */ | 67 | /* estimate must be a lower bound of the correct base */ |
| 68 | lua_assert(i < 0 || | 68 | lua_assert(i < 0 || |
| 69 | (i < f->sizeabslineinfo && f->abslineinfo[i].pc <= pc)); | 69 | (i < f->sizeabslineinfo && f->abslineinfo[i].pc <= pc)); |
| @@ -921,7 +921,7 @@ int luaG_tracecall (lua_State *L) { | |||
| 921 | */ | 921 | */ |
| 922 | int luaG_traceexec (lua_State *L, const Instruction *pc) { | 922 | int luaG_traceexec (lua_State *L, const Instruction *pc) { |
| 923 | CallInfo *ci = L->ci; | 923 | CallInfo *ci = L->ci; |
| 924 | lu_byte mask = L->hookmask; | 924 | lu_byte mask = cast_byte(L->hookmask); |
| 925 | const Proto *p = ci_func(ci)->p; | 925 | const Proto *p = ci_func(ci)->p; |
| 926 | int counthook; | 926 | int counthook; |
| 927 | if (!(mask & (LUA_MASKLINE | LUA_MASKCOUNT))) { /* no hooks? */ | 927 | if (!(mask & (LUA_MASKLINE | LUA_MASKCOUNT))) { /* no hooks? */ |
