mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
avoid string number
This commit is contained in:
@@ -518,7 +518,7 @@ is_rawarray(lua_State *L) {
|
|||||||
// empty table
|
// empty table
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
lua_Integer firstkey = lua_tointeger(L, -2);
|
lua_Integer firstkey = (lua_type(L, -2) == LUA_TNUMBER) ? lua_tointeger(L, -2) : 0;
|
||||||
lua_pop(L, 2);
|
lua_pop(L, 2);
|
||||||
if (firstkey != 1)
|
if (firstkey != 1)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user