Skip to content

Commit 068212f

Browse files
janbiedermanneregon
authored andcommitted
Fix compile error on FreeBSD 14
1 parent c3b877a commit 068212f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/concurrent-ruby-ext/atomic_reference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ VALUE ir_compare_and_set(volatile VALUE self, VALUE expect_value, VALUE new_valu
105105
return Qtrue;
106106
}
107107
#else
108-
if (__sync_bool_compare_and_swap(&DATA_PTR(self), expect_value, new_value)) {
108+
if (__sync_bool_compare_and_swap(&DATA_PTR(self), (void *)expect_value, (void *)new_value)) {
109109
return Qtrue;
110110
}
111111
#endif

0 commit comments

Comments
 (0)