diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-30 10:44:02 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-30 10:44:02 +0000 |
commit | 9db87ea5b9c10b80f3e9f1bc83c78527ad137ef0 (patch) | |
tree | 593ecf9f02646b0d4337ff13c0d73c45d5067509 /include | |
parent | 499bf746da00eab7b0fc365bec0e791f1ca2b203 (diff) |
* include/ruby/defines.h (INFINITY): this is float.
* include/ruby/defines.h (NAN): ditto.
* numericc.c (rb_infinity): change content as float.
* numericc.c (rb_nan): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/defines.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h index a81aef8416..7bb2788aaf 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -102,15 +102,17 @@ void xfree(void*); #ifdef INFINITY # define HAVE_INFINITY #else +/** @internal */ extern const unsigned char rb_infinity[]; -# define INFINITY (*(double *)rb_infinity) +# define INFINITY (*(float *)rb_infinity) #endif #ifdef NAN # define HAVE_NAN #else +/** @internal */ extern const unsigned char rb_nan[]; -# define NAN (*(double *)rb_nan) +# define NAN (*(float *)rb_nan) #endif #ifdef __CYGWIN__ |