diff options
author | trav90 <travawine@protonmail.ch> | 2018-08-10 14:44:03 -0500 |
---|---|---|
committer | trav90 <travawine@protonmail.ch> | 2018-08-10 14:44:03 -0500 |
commit | aa0f4269e62c3d2257936291e44f5721d3f3f1d1 (patch) | |
tree | fbc7a1721230491a68d8a88cab9974c7ad8f6290 /js/src | |
parent | e1ac3350e21e2cfd9f31b54b86423ef7dcfb3e39 (diff) | |
download | UXP-aa0f4269e62c3d2257936291e44f5721d3f3f1d1.tar UXP-aa0f4269e62c3d2257936291e44f5721d3f3f1d1.tar.gz UXP-aa0f4269e62c3d2257936291e44f5721d3f3f1d1.tar.lz UXP-aa0f4269e62c3d2257936291e44f5721d3f3f1d1.tar.xz UXP-aa0f4269e62c3d2257936291e44f5721d3f3f1d1.zip |
js::atomics_wait: Remove unnecessary parentheses in declaration of 'addr'
Silences a warning with GCC 8.
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/builtin/AtomicsObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/builtin/AtomicsObject.cpp b/js/src/builtin/AtomicsObject.cpp index 08777fd51..2551f3b7d 100644 --- a/js/src/builtin/AtomicsObject.cpp +++ b/js/src/builtin/AtomicsObject.cpp @@ -789,7 +789,7 @@ js::atomics_wait(JSContext* cx, unsigned argc, Value* vp) // and it provides the necessary memory fence. AutoLockFutexAPI lock; - SharedMem<int32_t*>(addr) = view->viewDataShared().cast<int32_t*>() + offset; + SharedMem<int32_t*> addr = view->viewDataShared().cast<int32_t*>() + offset; if (jit::AtomicOperations::loadSafeWhenRacy(addr) != value) { r.setString(cx->names().futexNotEqual); return true; |