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
bd90c99f
Unverified
Commit
bd90c99f
authored
Sep 20, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Sep 20, 2019
Browse files
Merge pull request #6398 from trevor211/fixRESP3ToLuaBool
RESP3: Fix function redisProtocolToLuaType about RESP3->Lua bools.
parents
f42ac40d
30a3644e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
bd90c99f
...
@@ -139,7 +139,7 @@ char *redisProtocolToLuaType(lua_State *lua, char* reply) {
...
@@ -139,7 +139,7 @@ char *redisProtocolToLuaType(lua_State *lua, char* reply) {
case
'%'
:
p
=
redisProtocolToLuaType_Aggregate
(
lua
,
reply
,
*
p
);
break
;
case
'%'
:
p
=
redisProtocolToLuaType_Aggregate
(
lua
,
reply
,
*
p
);
break
;
case
'~'
:
p
=
redisProtocolToLuaType_Aggregate
(
lua
,
reply
,
*
p
);
break
;
case
'~'
:
p
=
redisProtocolToLuaType_Aggregate
(
lua
,
reply
,
*
p
);
break
;
case
'_'
:
p
=
redisProtocolToLuaType_Null
(
lua
,
reply
);
break
;
case
'_'
:
p
=
redisProtocolToLuaType_Null
(
lua
,
reply
);
break
;
case
'#'
:
p
=
redisProtocolToLuaType_Bool
(
lua
,
reply
,
p
[
1
]);
case
'#'
:
p
=
redisProtocolToLuaType_Bool
(
lua
,
reply
,
p
[
1
]);
break
;
case
','
:
p
=
redisProtocolToLuaType_Double
(
lua
,
reply
);
case
','
:
p
=
redisProtocolToLuaType_Double
(
lua
,
reply
);
}
}
return
p
;
return
p
;
...
...
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