mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (rb_infinity, rb_nan): aggregated member initializers
need braces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d332891fdd
commit
bb98e0ecec
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Oct 23 18:03:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* numeric.c (rb_infinity, rb_nan): aggregated member initializers
|
||||
need braces.
|
||||
|
||||
Sun Oct 23 16:43:43 2011 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* ext/io/wait/wait.c: ioctl(2) is declared in unistd.h on Solaris.
|
||||
|
|
|
@ -66,16 +66,16 @@
|
|||
|
||||
#ifdef HAVE_INFINITY
|
||||
#elif !defined(WORDS_BIGENDIAN) /* BYTE_ORDER == LITTLE_ENDIAN */
|
||||
const union bytesequence4_or_float rb_infinity = { 0x00, 0x00, 0x80, 0x7f };
|
||||
const union bytesequence4_or_float rb_infinity = {{0x00, 0x00, 0x80, 0x7f}};
|
||||
#else
|
||||
const union bytesequence4_or_float rb_infinity = { 0x7f, 0x80, 0x00, 0x00 };
|
||||
const union bytesequence4_or_float rb_infinity = {{0x7f, 0x80, 0x00, 0x00}};
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NAN
|
||||
#elif !defined(WORDS_BIGENDIAN) /* BYTE_ORDER == LITTLE_ENDIAN */
|
||||
const union bytesequence4_or_float rb_nan = { 0x00, 0x00, 0xc0, 0x7f };
|
||||
const union bytesequence4_or_float rb_nan = {{0x00, 0x00, 0xc0, 0x7f}};
|
||||
#else
|
||||
const union bytesequence4_or_float rb_nan = { 0x7f, 0xc0, 0x00, 0x00 };
|
||||
const union bytesequence4_or_float rb_nan = {{0x7f, 0xc0, 0x00, 0x00}};
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ROUND
|
||||
|
|
Loading…
Add table
Reference in a new issue