fix warning on windows about possible loss of data

develop
myk002 2022-05-13 14:22:05 -07:00 committed by Myk
parent d6df928d69
commit ac8ac96080
1 changed files with 1 additions and 1 deletions

@ -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;
} }
} }