| Index: src/utils.cc
|
| diff --git a/src/utils.cc b/src/utils.cc
|
| index 16b5b7c61fa41f64b7368956e029eb970a34b293..c46028f05946f1268c182bf8573d64794e6d2e25 100644
|
| --- a/src/utils.cc
|
| +++ b/src/utils.cc
|
| @@ -430,8 +430,11 @@
|
|
|
| bool DoubleToBoolean(double d) {
|
| // NaN, +0, and -0 should return the false object
|
| - IeeeDoubleArchType u;
|
| -
|
| +#if V8_TARGET_LITTLE_ENDIAN
|
| + union IeeeDoubleLittleEndianArchType u;
|
| +#else
|
| + union IeeeDoubleBigEndianArchType u;
|
| +#endif
|
| u.d = d;
|
| if (u.bits.exp == 2047) {
|
| // Detect NaN for IEEE double precision floating point.
|
|
|