Index: runtime/vm/atomic_macos.h |
diff --git a/runtime/vm/atomic_macos.h b/runtime/vm/atomic_macos.h |
index bc2ed6a17a9eceff5ebc03e76e5f028b9446dc02..b56d2a0abd7bc5ea5e0c6dbaeeb2b345710ce0c2 100644 |
--- a/runtime/vm/atomic_macos.h |
+++ b/runtime/vm/atomic_macos.h |
@@ -21,8 +21,8 @@ inline uintptr_t AtomicOperations::FetchAndIncrement(uintptr_t* p) { |
} |
-inline intptr_t AtomicOperations::FetchAndAdd(intptr_t* p, intptr_t delta) { |
- return __sync_fetch_and_add(p, delta); |
+inline uintptr_t AtomicOperations::FetchAndDecrement(uintptr_t* p) { |
+ return __sync_fetch_and_sub(p, 1); |
} |