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
bd845493
Commit
bd845493
authored
May 18, 2016
by
whatacold
Committed by
antirez
Dec 21, 2016
Browse files
fix the wrong description of intsetGet().
parent
952e8706
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/intset.c
View file @
bd845493
...
...
@@ -261,7 +261,7 @@ int64_t intsetRandom(intset *is) {
return
_intsetGet
(
is
,
rand
()
%
intrev32ifbe
(
is
->
length
));
}
/*
Sets the value to
the value at the given position. When this position is
/*
Get
the value at the given position. When this position is
* out of range the function returns 0, when in range it returns 1. */
uint8_t
intsetGet
(
intset
*
is
,
uint32_t
pos
,
int64_t
*
value
)
{
if
(
pos
<
intrev32ifbe
(
is
->
length
))
{
...
...
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