]> git.saurik.com Git - redis.git/commit
Fix ZUNIONSTORE/ZINTERSTORE to never store a NaN score.
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 29 Jul 2010 19:31:58 +0000 (21:31 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 29 Jul 2010 21:03:11 +0000 (23:03 +0200)
commitd9e28bcf00a1e52c5e0c8cbc5f2c8c8cb7d7027f
treeb8c6463a95a502952c448099537669ec7dd7cacb
parentcbf7e1070a5f3bcd8024dff481a2f729a2b5cf2f
Fix ZUNIONSTORE/ZINTERSTORE to never store a NaN score.

When +inf and -inf are added, the result is NaN. We don't want NaN
scores in a sorted set, so agreed on the result of this operation being
zero.
src/t_zset.c
tests/unit/type/zset.tcl