mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
first key can't can be in hash part, see #1484
This commit is contained in:
@@ -519,7 +519,10 @@ is_rawarray(lua_State *L) {
|
|||||||
}
|
}
|
||||||
lua_Integer firstkey = lua_isinteger(L, -2) ? lua_tointeger(L, -2) : 0;
|
lua_Integer firstkey = lua_isinteger(L, -2) ? lua_tointeger(L, -2) : 0;
|
||||||
lua_pop(L, 2);
|
lua_pop(L, 2);
|
||||||
return firstkey > 0;
|
if (firstkey <= 1) {
|
||||||
|
return firstkey > 0;
|
||||||
|
}
|
||||||
|
return firstkey <= lua_rawlen(L, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user