mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
make buffer larger for number to string
This commit is contained in:
@@ -419,7 +419,7 @@ pack_dict(lua_State *L, struct bson *b, bool isarray) {
|
|||||||
lua_pushnil(L);
|
lua_pushnil(L);
|
||||||
while(lua_next(L,-2) != 0) {
|
while(lua_next(L,-2) != 0) {
|
||||||
int kt = lua_type(L, -2);
|
int kt = lua_type(L, -2);
|
||||||
char numberkey[8];
|
char numberkey[32];
|
||||||
const char * key = NULL;
|
const char * key = NULL;
|
||||||
size_t sz;
|
size_t sz;
|
||||||
if (isarray) {
|
if (isarray) {
|
||||||
|
|||||||
Reference in New Issue
Block a user