File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ static int processLineItem(redisReader *r) {
352
352
} else if (cur -> type == REDIS_REPLY_BIGNUM ) {
353
353
/* Ensure all characters are decimal digits (with possible leading
354
354
* minus sign). */
355
- for (int i = 0 ; i < len ; i ++ ) {
355
+ for (size_t i = 0 ; i < len ; i ++ ) {
356
356
/* XXX Consider: Allow leading '+'? Error on leading '0's? */
357
357
if (i == 0 && p [0 ] == '-' ) continue ;
358
358
if (p [i ] < '0' || p [i ] > '9' ) {
@@ -367,7 +367,7 @@ static int processLineItem(redisReader *r) {
367
367
obj = (void * )REDIS_REPLY_BIGNUM ;
368
368
} else {
369
369
/* Type will be error or status. */
370
- for (int i = 0 ; i < len ; i ++ ) {
370
+ for (size_t i = 0 ; i < len ; i ++ ) {
371
371
if (p [i ] == '\r' || p [i ] == '\n' ) {
372
372
__redisReaderSetError (r ,REDIS_ERR_PROTOCOL ,
373
373
"Bad simple string value" );
You can’t perform that action at this time.
0 commit comments