Use C99's INFINITY and NAN macros
commit2f7008715326a49770fcb82003ed78eab28c0626
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 9 Feb 2015 07:12:04 +0000 (8 23:12 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 9 Feb 2015 07:12:32 +0000 (8 23:12 -0800)
treea34a7d13109dda84089ea6082e243f27000fe671
parent237171731157095f5cc46b0f6f6205e3b4ba9f00
Use C99's INFINITY and NAN macros

* lread.c: Include <math.h>.
(string_to_number): Use INFINITY and NAN rather than rolling our own.
This avoids some runtime diagnostics when building with
gcc -fsanitize=undefined.
src/ChangeLog
src/lread.c