No longer store integer sign in struct

This commit is contained in:
Pieter Noordhuis 2011-07-07 11:37:09 +02:00
parent fd5898290f
commit ec7eaed9f2
2 changed files with 0 additions and 3 deletions

View File

@ -200,13 +200,11 @@ size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, cons
/* Start with negative sign */
if (ch == '-') {
i64.neg = 1;
ADVANCE_AND_MOVE(integer_neg_19);
}
/* Start with positive sign */
if (ch == '+') {
i64.neg = 0;
ADVANCE_AND_MOVE(integer_pos_19);
}

View File

@ -53,7 +53,6 @@ struct redis_parser_s {
/* private: temporary integer (integer reply, bulk length) */
struct redis_parser_int64_s {
int neg; /* sign */
uint64_t ui64; /* accumulator */
int64_t i64; /* result */
} i64;