summaryrefslogtreecommitdiffstats
path: root/js/src/builtin
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-08-10 14:44:03 -0500
committertrav90 <travawine@protonmail.ch>2018-08-10 14:44:03 -0500
commitaa0f4269e62c3d2257936291e44f5721d3f3f1d1 (patch)
treefbc7a1721230491a68d8a88cab9974c7ad8f6290 /js/src/builtin
parente1ac3350e21e2cfd9f31b54b86423ef7dcfb3e39 (diff)
downloadUXP-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/builtin')
-rw-r--r--js/src/builtin/AtomicsObject.cpp2
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;