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 | 482b3c1835e0a7c0f35d1a358d0477b1053e7a8d (patch) | |
tree | 593ecf9f02646b0d4337ff13c0d73c45d5067509 /numeric.c | |
parent | a1f76cae297fbdddebc6e16b3a274686893565ff (diff) | |
download | ruby-482b3c1835e0a7c0f35d1a358d0477b1053e7a8d.tar.gz ruby-482b3c1835e0a7c0f35d1a358d0477b1053e7a8d.tar.xz ruby-482b3c1835e0a7c0f35d1a358d0477b1053e7a8d.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@26202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -65,16 +65,16 @@ #ifdef HAVE_INFINITY #elif BYTE_ORDER == LITTLE_ENDIAN -const unsigned char rb_infinity[] = "\x00\x00\x00\x00\x00\x00\xf0\x7f"; +const unsigned char rb_infinity[] = "\x00\x00\x80\x7f"; #else -const unsigned char rb_infinity[] = "\x7f\xf0\x00\x00\x00\x00\x00\x00"; +const unsigned char rb_infinity[] = "\x7f\x80\x00\x00"; #endif #ifdef HAVE_NAN #elif BYTE_ORDER == LITTLE_ENDIAN -const unsigned char rb_nan[] = "\x00\x00\x00\x00\x00\x00\xf8\x7f"; +const unsigned char rb_nan[] = "\x00\x00\xc0\x7f"; #else -const unsigned char rb_nan[] = "\x7f\xf8\x00\x00\x00\x00\x00\x00"; +const unsigned char rb_nan[] = "\x7f\xc0\x00\x00"; #endif extern double round(double); |