diff options
| author | cremno <[email protected]> | 2014-03-08 16:38:50 +0100 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-03-08 17:25:07 +0100 |
| commit | f57b9d1576ab5a79f1fd31ad017af1f3f2517186 (patch) | |
| tree | efde77c1aea09fd6780ca59846c63069cbeb2220 /src/enum.c | |
| parent | bd4b59cd043fcff8095a5c474330d66ccaf69524 (diff) | |
| download | mruby-f57b9d1576ab5a79f1fd31ad017af1f3f2517186.tar.gz mruby-f57b9d1576ab5a79f1fd31ad017af1f3f2517186.zip | |
use NAN and INFINITY
The macro str_to_mrb_float (strto[df]) converts a string to a number,
but these two macros can be used to directly get the special value.
The NAN macro requires quiet NaN support, but so does str_to_mrb_float.
This change also circumvents missing C99 support in Microsoft's C library.
Its (or ISO C90's) strtod doesn't parse "nan" or "inf".
Diffstat (limited to 'src/enum.c')
0 files changed, 0 insertions, 0 deletions
