summaryrefslogtreecommitdiffhomepage
path: root/src/object.c
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-03-08 16:38:50 +0100
committercremno <[email protected]>2014-03-08 17:25:07 +0100
commitf57b9d1576ab5a79f1fd31ad017af1f3f2517186 (patch)
treeefde77c1aea09fd6780ca59846c63069cbeb2220 /src/object.c
parentbd4b59cd043fcff8095a5c474330d66ccaf69524 (diff)
downloadmruby-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/object.c')
0 files changed, 0 insertions, 0 deletions