Commit bb95fb44 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Ignore '+' character

parent 112019a0
...@@ -184,11 +184,12 @@ size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, cons ...@@ -184,11 +184,12 @@ size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, cons
case s_integer_sign: case s_integer_sign:
l_integer_sign: l_integer_sign:
{ {
i64.neg = (ch == '-'); i64.neg = 0;
i64.ui64 = 0; i64.ui64 = 0;
/* Break when char was consumed */ /* Break when char was consumed */
if (ch == '-' || ch == '+') { if (ch == '-') {
i64.neg = 1;
TRANSITION(integer_start); TRANSITION(integer_start);
} }
......
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