diff options
author | Jack Drogon <jack.xsuperman@gmail.com> | 2018-07-01 13:24:50 +0800 |
---|---|---|
committer | Salvatore Sanfilippo <antirez@gmail.com> | 2018-07-03 18:19:46 +0200 |
commit | 93238575f77630f24e0472bdbf7eecb73a4652a8 (patch) | |
tree | fb075adb140513364b5d357c676196d33b709602 /src/bitops.c | |
parent | 94b3ee61420f8638d9cdba32877864deef91d5e9 (diff) | |
download | redis-93238575f77630f24e0472bdbf7eecb73a4652a8.tar.gz |
Fix typo
Diffstat (limited to 'src/bitops.c')
-rw-r--r-- | src/bitops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bitops.c b/src/bitops.c index 43450fca3..23f2266a7 100644 --- a/src/bitops.c +++ b/src/bitops.c @@ -918,7 +918,7 @@ void bitfieldCommand(client *c) { struct bitfieldOp *ops = NULL; /* Array of ops to execute at end. */ int owtype = BFOVERFLOW_WRAP; /* Overflow type. */ int readonly = 1; - size_t higest_write_offset = 0; + size_t highest_write_offset = 0; for (j = 2; j < c->argc; j++) { int remargs = c->argc-j-1; /* Remaining args other than current. */ @@ -968,8 +968,8 @@ void bitfieldCommand(client *c) { if (opcode != BITFIELDOP_GET) { readonly = 0; - if (higest_write_offset < bitoffset + bits - 1) - higest_write_offset = bitoffset + bits - 1; + if (highest_write_offset < bitoffset + bits - 1) + highest_write_offset = bitoffset + bits - 1; /* INCRBY and SET require another argument. */ if (getLongLongFromObjectOrReply(c,c->argv[j+3],&i64,NULL) != C_OK){ zfree(ops); @@ -999,7 +999,7 @@ void bitfieldCommand(client *c) { /* Lookup by making room up to the farest bit reached by * this operation. */ if ((o = lookupStringForBitCommand(c, - higest_write_offset)) == NULL) return; + highest_write_offset)) == NULL) return; } addReplyMultiBulkLen(c,numops); |