diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-23 09:03:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-23 09:03:33 +0000 |
commit | bb98e0ecec27318f376e487f8c7e2e8852802967 (patch) | |
tree | ad9fef088e88f1deccb38f8d23d1ebc74442e1d6 /numeric.c | |
parent | d332891fddbcf9d319369968b5898b294742343b (diff) |
* 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
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |