Commit 0b769120 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #3242 from whatacold/unstable

fix the wrong description of intsetGet().
parents 43bccbc3 0f36e5e5
...@@ -261,7 +261,7 @@ int64_t intsetRandom(intset *is) { ...@@ -261,7 +261,7 @@ int64_t intsetRandom(intset *is) {
return _intsetGet(is,rand()%intrev32ifbe(is->length)); 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. */ * out of range the function returns 0, when in range it returns 1. */
uint8_t intsetGet(intset *is, uint32_t pos, int64_t *value) { uint8_t intsetGet(intset *is, uint32_t pos, int64_t *value) {
if (pos < intrev32ifbe(is->length)) { if (pos < intrev32ifbe(is->length)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment