Skip to content

Commit b09420e

Browse files
authored
Fix zend_atomic_bool_exchange_ex() in HAVE_NO_ATOMICS case (#8801)
1 parent e2bd3b1 commit b09420e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_atomic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static zend_always_inline bool zend_atomic_bool_load_ex(const zend_atomic_bool *
150150

151151
static zend_always_inline bool zend_atomic_bool_exchange_ex(zend_atomic_bool *obj, bool desired) {
152152
bool prev = obj->value;
153-
obj->value = true;
153+
obj->value = desired;
154154
return prev;
155155
}
156156

0 commit comments

Comments
 (0)