Skip to content

Commit 535a649

Browse files
committed
fix: unpredictable_function_pointer_comparisons
1 parent 8141c4b commit 535a649

File tree

1 file changed

+1
-1
lines changed
  • src/unix/bsd/freebsdlike/freebsd/x86_64

1 file changed

+1
-1
lines changed

src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ cfg_if! {
243243
unsafe {
244244
self.a_val == other.a_val
245245
|| self.a_ptr == other.a_ptr
246-
|| self.a_fcn == other.a_fcn
246+
|| core::ptr::fn_addr_eq(self.a_fcn, other.a_fcn)
247247
}
248248
}
249249
}

0 commit comments

Comments
 (0)