Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/rdatomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static RD_INLINE int32_t RD_UNUSED rd_atomic32_set(rd_atomic32_t *ra,
#elif !HAVE_ATOMICS_32
int32_t r;
mtx_lock(&ra->lock);
r = rd->val;
r = ra->val;
ra->val = v;
mtx_unlock(&ra->lock);
return r;
Expand Down