summaryrefslogtreecommitdiff
path: root/src/rand.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-11-04 17:16:34 +0100
committerantirez <antirez@gmail.com>2015-11-04 17:16:34 +0100
commit71aa9b75f2c4dd6faa20a4849ff732536bdfceab (patch)
treea200de83a3eee77b96a5168f877eab775fb872ce /src/rand.h
parentf6255703b0bd4996ab2278e1253796468aed108a (diff)
downloadredis-71aa9b75f2c4dd6faa20a4849ff732536bdfceab.tar.gz
Fix HINCRBYFLOAT to work with long doubles.
During the refactoring needed for lazy free, specifically the conversion of t_hash from struct robj to plain SDS strings, HINCRBFLOAT was accidentally moved away from long doubles to doubles for internal processing of increments and formatting. The diminished precision created more obvious artifacts in the way small numbers are formatted once we convert from decimal number in radix 10 to double and back to its string in radix 10. By using more precision, we now have less surprising results at least with small numbers like "1.23", exactly like in the previous versions of Redis. See issue #2846.
Diffstat (limited to 'src/rand.h')
0 files changed, 0 insertions, 0 deletions