Bug 1146817 - Addendum to squash MSVC warning, avoid a static arithmetic overflow. r=me
authorLars T Hansen <lhansen@mozilla.com>
Mon, 04 Sep 2017 13:39:29 +0200
changeset 378846 ae143cf168fe424c6041da8474090e74817741d3
parent 378845 2cdac401110fbe54de4305a37628399ffd51a569
child 378847 6238f14363f27df8cc8d570e7e4d8dce25299ba1
push id32443
push userarchaeopteryx@coole-files.de
push dateTue, 05 Sep 2017 09:41:20 +0000
treeherdermozilla-central@3ecda4678c49 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1146817
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1146817 - Addendum to squash MSVC warning, avoid a static arithmetic overflow. r=me
js/src/jsapi-tests/testAtomicOperations.cpp
--- a/js/src/jsapi-tests/testAtomicOperations.cpp
+++ b/js/src/jsapi-tests/testAtomicOperations.cpp
@@ -203,17 +203,17 @@ BEGIN_TEST(testAtomicOperationsI32)
 }
 END_TEST(testAtomicOperationsI32)
 
 BEGIN_TEST(testAtomicOperationsU64)
 {
     if (!jit::AtomicOperations::hasAtomic8())
         return true;
 
-    const uint64_t A(0xbaadf00ddeadbeef);
+    const uint64_t A(0x9aadf00ddeadbeef);
     const uint64_t B(0x4eedbead1337f001);
     ATOMIC_TESTS(uint64_t, A, B);
 }
 END_TEST(testAtomicOperationsU64)
 
 BEGIN_TEST(testAtomicOperationsI64)
 {
     if (!jit::AtomicOperations::hasAtomic8())