Treat the tag of a TValue as unsigned everywhere.

This commit is contained in:
Mike Pall
2010-04-25 23:21:15 +02:00
parent f396f3d192
commit 41379126a2
7 changed files with 39 additions and 40 deletions

View File

@@ -224,7 +224,7 @@ LJLIB_ASM(tostring) LJLIB_REC(.)
if (tvisnum(o)) {
s = lj_str_fromnum(L, &o->n);
} else if (tvispri(o)) {
s = strV(lj_lib_upvalue(L, -itype(o)));
s = strV(lj_lib_upvalue(L, -(int32_t)itype(o)));
} else {
if (tvisfunc(o) && isffunc(funcV(o)))
lua_pushfstring(L, "function: fast#%d", funcV(o)->c.ffid);