Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
bebbc7f9
You need to sign in or sign up before continuing.
Commit
bebbc7f9
authored
Nov 05, 2013
by
antirez
Browse files
Pass int64_t to intsetGet() instead of long long.
parent
736e3435
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
bebbc7f9
...
@@ -445,7 +445,7 @@ void scanGenericCommand(redisClient *c, robj *o) {
...
@@ -445,7 +445,7 @@ void scanGenericCommand(redisClient *c, robj *o) {
}
while
(
cursor
&&
listLength
(
keys
)
<
count
);
}
while
(
cursor
&&
listLength
(
keys
)
<
count
);
}
else
if
(
o
->
type
==
REDIS_SET
)
{
}
else
if
(
o
->
type
==
REDIS_SET
)
{
int
pos
=
0
;
int
pos
=
0
;
long
long
ll
;
int64_t
ll
;
while
(
intsetGet
(
o
->
ptr
,
pos
++
,
&
ll
))
while
(
intsetGet
(
o
->
ptr
,
pos
++
,
&
ll
))
listAddNodeTail
(
keys
,
createStringObjectFromLongLong
(
ll
));
listAddNodeTail
(
keys
,
createStringObjectFromLongLong
(
ll
));
...
...
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