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