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

No longer store integer sign in struct

parent fd589829
...@@ -200,13 +200,11 @@ size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, cons ...@@ -200,13 +200,11 @@ size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, cons
/* Start with negative sign */ /* Start with negative sign */
if (ch == '-') { if (ch == '-') {
i64.neg = 1;
ADVANCE_AND_MOVE(integer_neg_19); ADVANCE_AND_MOVE(integer_neg_19);
} }
/* Start with positive sign */ /* Start with positive sign */
if (ch == '+') { if (ch == '+') {
i64.neg = 0;
ADVANCE_AND_MOVE(integer_pos_19); ADVANCE_AND_MOVE(integer_pos_19);
} }
......
...@@ -53,7 +53,6 @@ struct redis_parser_s { ...@@ -53,7 +53,6 @@ struct redis_parser_s {
/* private: temporary integer (integer reply, bulk length) */ /* private: temporary integer (integer reply, bulk length) */
struct redis_parser_int64_s { struct redis_parser_int64_s {
int neg; /* sign */
uint64_t ui64; /* accumulator */ uint64_t ui64; /* accumulator */
int64_t i64; /* result */ int64_t i64; /* result */
} i64; } i64;
......
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