summaryrefslogtreecommitdiff
path: root/src/intset.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2010-12-09 10:21:02 +0100
committerantirez <antirez@gmail.com>2010-12-09 10:21:02 +0100
commita5be65f71c927601260f4518236cbc7bc3d87965 (patch)
treed2eb064f92e798a343836bdc50b0290a5518b91b /src/intset.c
parentd51ebef5090624a3ba0824fa697410deaff1d1fa (diff)
downloadredis-a5be65f71c927601260f4518236cbc7bc3d87965.tar.gz
COW friendly versions of SPOP and SRANDMEMBER commands, with some change to the set encoding-agnostic API.
Diffstat (limited to 'src/intset.c')
-rw-r--r--src/intset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intset.c b/src/intset.c
index 2f359b7ff..bfd3307d2 100644
--- a/src/intset.c
+++ b/src/intset.c
@@ -179,7 +179,7 @@ intset *intsetAdd(intset *is, int64_t value, uint8_t *success) {
}
/* Delete integer from intset */
-intset *intsetRemove(intset *is, int64_t value, uint8_t *success) {
+intset *intsetRemove(intset *is, int64_t value, int *success) {
uint8_t valenc = _intsetValueEncoding(value);
uint32_t pos;
if (success) *success = 0;