Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
477e4daa
Commit
477e4daa
authored
Aug 13, 2013
by
yihuang
Committed by
antirez
Aug 27, 2013
Browse files
fix lua_cmsgpack pack map as array
parent
ef0fa089
Changes
1
Hide whitespace changes
Inline
Side-by-side
deps/lua/src/lua_cmsgpack.c
View file @
477e4daa
...
...
@@ -374,7 +374,7 @@ static int table_is_an_array(lua_State *L) {
while
(
lua_next
(
L
,
-
2
))
{
/* Stack: ... key value */
lua_pop
(
L
,
1
);
/* Stack: ... key */
if
(
!
lua_
isnumber
(
L
,
-
1
)
)
goto
not_array
;
if
(
lua_
type
(
L
,
-
1
)
!=
LUA_TNUMBER
)
goto
not_array
;
n
=
lua_tonumber
(
L
,
-
1
);
idx
=
n
;
if
(
idx
!=
n
||
idx
<
1
)
goto
not_array
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment