summaryrefslogtreecommitdiff
path: root/src/lj_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_parse.c')
-rw-r--r--src/lj_parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_parse.c b/src/lj_parse.c
index b5bd7baf..c881aa91 100644
--- a/src/lj_parse.c
+++ b/src/lj_parse.c
@@ -184,7 +184,7 @@ static BCReg const_num(FuncState *fs, ExpDesc *e)
184} 184}
185 185
186/* Add a GC object constant. */ 186/* Add a GC object constant. */
187static BCReg const_gc(FuncState *fs, GCobj *gc, int itype) 187static BCReg const_gc(FuncState *fs, GCobj *gc, uint32_t itype)
188{ 188{
189 lua_State *L = fs->L; 189 lua_State *L = fs->L;
190 TValue o, *val; 190 TValue o, *val;
@@ -1294,10 +1294,10 @@ static void expr_bracket(LexState *ls, ExpDesc *v)
1294static void expr_kvalue(TValue *v, ExpDesc *e) 1294static void expr_kvalue(TValue *v, ExpDesc *e)
1295{ 1295{
1296 if (e->k <= VKTRUE) { 1296 if (e->k <= VKTRUE) {
1297 v->it = ~(int32_t)e->k; 1297 setitype(v, ~(uint32_t)e->k);
1298 } else if (e->k == VKSTR) { 1298 } else if (e->k == VKSTR) {
1299 setgcref(v->gcr, obj2gco(e->u.sval)); 1299 setgcref(v->gcr, obj2gco(e->u.sval));
1300 v->it = LJ_TSTR; 1300 setitype(v, LJ_TSTR);
1301 } else { 1301 } else {
1302 lua_assert(e->k == VKNUM); 1302 lua_assert(e->k == VKNUM);
1303 setnumV(v, expr_numV(e)); 1303 setnumV(v, expr_numV(e));