summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-08-13 18:52:43 +0200
committerGitHub <noreply@github.com>2018-08-13 18:52:43 +0200
commitba2882cf71d06e121b7a023f954388768a5964dd (patch)
tree70f1e0754b0bd39151721c248c3d2328f53ae71d /js
parent727eefc7c4f2b9197dc26d298340a12ca4feae36 (diff)
parent9b48c3fa58c4926341e1668fdfec131ada3147a1 (diff)
downloadUXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar.gz
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar.lz
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar.xz
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.zip
Merge pull request #706 from trav90/gcc8
Fix/silence some warnings with GCC 8
Diffstat (limited to 'js')
-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;