aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-27 13:32:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-27 13:32:59 -0300
commit0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b (patch)
tree0ac634fed90877130b1f102bf4075af999de2158 /ldebug.c
parent15231d4fb2f6984b25e0353ff46eda1a180b686d (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index 1c8b57c8..a3a536bb 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -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*/
922int luaG_traceexec (lua_State *L, const Instruction *pc) { 922int 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? */