diff options
author | Matt Stancliff <matt@genges.com> | 2015-01-20 10:58:35 -0500 |
---|---|---|
committer | Matt Stancliff <matt@genges.com> | 2015-01-22 16:00:38 -0500 |
commit | 195aca34274bd633f6ecfca2e9a4e76ae669ae0e (patch) | |
tree | 70b3a98c84f26fa8d89b61b8b629327004411bbb /COPYING | |
parent | 802456def1949cc1b1eef21cd5c8290161c4f434 (diff) |
Improve digit counting for multibulk creation
This replaces the old intlen() implementation with a slightly
faster way of counting digits.
Implementation taken from the same place where digits10() in
redis/src/util.c came from.
The old 'intlen' allowed negative inputs, but no usage in hiredis
was passing negative numbers, so that ability is removed. Also,
the new implementation can count higher (uint64_t) instead of
limited to just int as before.
Fixes #295 by replacing implementation
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions