Fix bug with min and max and NaNs
commit5f28f0db73c03b98b27e04a458ebb209b5d9acde
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Sep 2017 22:25:44 +0000 (17 15:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Sep 2017 22:26:41 +0000 (17 15:26 -0700)
tree4c431e51e3e20d6b847907d014b1aea7754f34da
parent37b5e661d298cbfe51422cd515b6696a1cdaa868
Fix bug with min and max and NaNs

* src/data.c (minmax_driver): Fix bug with (min 0 NaN), which
mistakenly yielded 0.  Also, pacify GCC in a better way.
* test/src/data-tests.el (data-tests-min): Test for the bug.
src/data.c
test/src/data-tests.el