Skip to content

Commit

Permalink
Fix compile error on FreeBSD 14
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Biedermann authored and eregon committed Nov 21, 2023
1 parent c3b877a commit 068212f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/concurrent-ruby-ext/atomic_reference.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ VALUE ir_compare_and_set(volatile VALUE self, VALUE expect_value, VALUE new_valu
return Qtrue;
}
#else
if (__sync_bool_compare_and_swap(&DATA_PTR(self), expect_value, new_value)) {
if (__sync_bool_compare_and_swap(&DATA_PTR(self), (void *)expect_value, (void *)new_value)) {
return Qtrue;
}
#endif
Expand Down

0 comments on commit 068212f

Please sign in to comment.