diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2018-11-19 02:46:11 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-11-19 08:59:43 +0100 |
commit | 595bebf6676bdb224371224673779e411b9428a9 (patch) | |
tree | 10a40fc1c5f1e775fb4ddfc77c47209554b6bb41 /source/l/mozjs52/patches/tests-snans-be.patch | |
parent | 6a677844125bf74f4dac1fc2e4e7181281f7ae39 (diff) | |
download | current-595bebf6676bdb224371224673779e411b9428a9.tar.gz current-595bebf6676bdb224371224673779e411b9428a9.tar.xz |
Mon Nov 19 02:46:11 UTC 201820181119024611
l/js185-1.0.0-x86_64-2.txz: Removed.
l/libwebp-1.0.1-x86_64-1.txz: Upgraded.
l/mozjs52-52.9.0esr-x86_64-1.txz: Added.
Required by the new version of polkit.
l/polkit-0.115-x86_64-1.txz: Upgraded.
Thanks to Robby Workman.
Diffstat (limited to 'source/l/mozjs52/patches/tests-snans-be.patch')
-rw-r--r-- | source/l/mozjs52/patches/tests-snans-be.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/source/l/mozjs52/patches/tests-snans-be.patch b/source/l/mozjs52/patches/tests-snans-be.patch new file mode 100644 index 000000000..4e65cd913 --- /dev/null +++ b/source/l/mozjs52/patches/tests-snans-be.patch @@ -0,0 +1,29 @@ +Description: Fix sort_snans.js test on big endian +Author: Adrian Bunk <bunk@debian.org> +Bug-Debian: https://bugs.debian.org/878285 + +--- mozjs52-52.3.1.orig/js/src/tests/ecma_6/TypedArray/sort_snans.js ++++ mozjs52-52.3.1/js/src/tests/ecma_6/TypedArray/sort_snans.js +@@ -34,8 +34,20 @@ function testFloat32NaNRanges(start, end + // and startHi, startLow and endHi, endLow should be 32-bit integers which, + // when combined (Hi + Low), form Float64 NaNs. + function testFloat64NaNRanges(startHi, startLow, endHi, endLow) { +- let skipN = 10e6; + ++ // Swap on big endian platforms ++ if ((new Uint32Array((new Uint8Array([1,2,3,4])).buffer))[0] === 0x01020304) { ++ let tmp = startHi; ++ startHi = startLow; ++ startLow = tmp; ++ ++ tmp = endHi; ++ endHi = endLow; ++ endLow = tmp; ++ } ++ ++ let skipN = 10e6; ++ + let sampleSizeHi = Math.floor((endHi - startHi)/skipN); + let sampleSizeLow = Math.floor((endLow - startLow)/skipN); + + |