aboutsummaryrefslogtreecommitdiff
path: root/src/lj_err.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_err.c')
-rw-r--r--src/lj_err.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_err.c b/src/lj_err.c
index 20be9e9a..02a7c4cc 100644
--- a/src/lj_err.c
+++ b/src/lj_err.c
@@ -107,10 +107,10 @@ restart:
107 if (ra == slot) { slot = bc_d(ins); goto restart; } 107 if (ra == slot) { slot = bc_d(ins); goto restart; }
108 break; 108 break;
109 case BC_GGET: 109 case BC_GGET:
110 *name = strdata(gco2str(gcref(pt->k.gc[~bc_d(ins)]))); 110 *name = strdata(gco2str(gcref(pt->k.gc[~(ptrdiff_t)bc_d(ins)])));
111 return "global"; 111 return "global";
112 case BC_TGETS: 112 case BC_TGETS:
113 *name = strdata(gco2str(gcref(pt->k.gc[~bc_c(ins)]))); 113 *name = strdata(gco2str(gcref(pt->k.gc[~(ptrdiff_t)bc_c(ins)])));
114 if (ip > pt->bc) { 114 if (ip > pt->bc) {
115 BCIns insp = ip[-1]; 115 BCIns insp = ip[-1];
116 if (bc_op(insp) == BC_MOV && bc_a(insp) == ra+1 && 116 if (bc_op(insp) == BC_MOV && bc_a(insp) == ra+1 &&