mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (rb_infinity, rb_nan): use WORDS_BIGENDIAN to get endian.
fix [Bug #5160] [ruby-dev:44356] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
543ecd95d5
commit
9fb5dca9c9
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Aug 5 22:16:20 2011 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* numeric.c (rb_infinity, rb_nan): use WORDS_BIGENDIAN to get endian.
|
||||
fix [Bug #5160] [ruby-dev:44356]
|
||||
|
||||
Fri Aug 5 17:14:11 2011 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* test/test_syslog.rb (TestSyslog#test_log): Do not be too
|
||||
|
|
|
@ -65,14 +65,14 @@
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_INFINITY
|
||||
#elif BYTE_ORDER == LITTLE_ENDIAN
|
||||
#elif !defined(WORDS_BIGENDIAN) /* BYTE_ORDER == LITTLE_ENDIAN */
|
||||
const unsigned char rb_infinity[] = "\x00\x00\x80\x7f";
|
||||
#else
|
||||
const unsigned char rb_infinity[] = "\x7f\x80\x00\x00";
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NAN
|
||||
#elif BYTE_ORDER == LITTLE_ENDIAN
|
||||
#elif !defined(WORDS_BIGENDIAN) /* BYTE_ORDER == LITTLE_ENDIAN */
|
||||
const unsigned char rb_nan[] = "\x00\x00\xc0\x7f";
|
||||
#else
|
||||
const unsigned char rb_nan[] = "\x7f\xc0\x00\x00";
|
||||
|
|
Loading…
Reference in a new issue