void-packages/srcpkgs/mozjs60/patches/0007-jsproperty-endian.patch
Jürgen Buchmüller 5e8386b770
mozjs60: update to 60.7.0
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-06-02 01:04:06 +02:00

22 lines
586 B
Diff

Bug 1543659 - fix JSPropertySpec::ValueWrapper on 64-bit big-endian platforms
Add some padding to make the union's int32 member correspond to the
low-order bits of the string member. This fixes TypedArray tests on
s390x.
--- a/js/src/jsapi.h
+++ b/js/src/jsapi.h
@@ -1702,7 +1702,12 @@
uintptr_t type;
union {
const char* string;
- int32_t int32;
+ struct {
+#if MOZ_BIG_ENDIAN && JS_BITS_PER_WORD == 64
+ uint32_t padding;
+#endif
+ int32_t int32;
+ };
};
};