|
|
@ -395,7 +395,7 @@ LUA_API size_t lua_rawlen (lua_State *L, int idx) {
|
|
|
|
case LUA_TSHRSTR: return tsvalue(o)->shrlen;
|
|
|
|
case LUA_TSHRSTR: return tsvalue(o)->shrlen;
|
|
|
|
case LUA_TLNGSTR: return tsvalue(o)->u.lnglen;
|
|
|
|
case LUA_TLNGSTR: return tsvalue(o)->u.lnglen;
|
|
|
|
case LUA_TUSERDATA: return uvalue(o)->len;
|
|
|
|
case LUA_TUSERDATA: return uvalue(o)->len;
|
|
|
|
case LUA_TTABLE: return luaH_getn(hvalue(o));
|
|
|
|
case LUA_TTABLE: return size_t(luaH_getn(hvalue(o)));
|
|
|
|
default: return 0;
|
|
|
|
default: return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|