From bd96d1f9fe235fc3f2eedca5de8f4c739824886c Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Tue, 5 Jul 2011 10:37:10 +0200 Subject: [PATCH] Style and comments --- parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser.c b/parser.c index ba23eb1..98dd7a0 100644 --- a/parser.c +++ b/parser.c @@ -232,7 +232,7 @@ size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, cons if (i64.ui64 > (UINT64_MAX / 10)) /* Overflow */ goto error; i64.ui64 *= 10; - if (i64.ui64 > (UINT64_MAX - (ch-'0'))) /* Overflow */ + if (i64.ui64 > (UINT64_MAX - (ch - '0'))) /* Overflow */ goto error; i64.ui64 += ch - '0'; TRANSITION(integer_09); @@ -296,6 +296,7 @@ size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, cons goto done; } + /* Store remaining objects for a complete multi bulk */ cur->remaining = (unsigned)i64.i64; CALLBACK(array, cur->remaining); goto done;