diff options
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? */ |