]> git.saurik.com Git - redis.git/commit - src/object.c
Change getDoubleFromObject to fail on NaN.
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 29 Jul 2010 20:13:31 +0000 (22:13 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 29 Jul 2010 21:05:01 +0000 (23:05 +0200)
commit673e1fb7e4c171f5ead560f6886e877f43730cf0
tree4aaab0dd2c14a555fb319f634b4af7c4bb677411
parentd9e28bcf00a1e52c5e0c8cbc5f2c8c8cb7d7027f
Change getDoubleFromObject to fail on NaN.

Return an error when the resulting value is not a number (NaN). Fix
ZUNIONSTORE/ZINTERSTORE to clean up when a weight argument is not a
double value.
src/object.c
src/t_zset.c
tests/unit/type/zset.tcl