mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
Avoid a direct function-to-integer cast in a ZJIT test. (#18014)
Rust 1.93 added a warn-by-default lint for casting function items directly to integer types.
This commit is contained in:
1 parent
9438d7fd1e
commit
024f201f76
1 file changed
+1
-1
Notes:
git
2026-07-22 21:16:26 +00:00
Merged-By: tenderlove <aaron.patterson@gmail.com>
@@ -5157,7 +5157,7 @@ mod signal_profiler {
|
||||
|
||||
let mut handler: libc::sigaction = unsafe { std::mem::zeroed() };
|
||||
assert_eq!(unsafe { libc::sigemptyset(&mut handler.sa_mask) }, 0, "sigemptyset failed");
|
||||
handler.sa_sigaction = sample_profile_frames as libc::sighandler_t;
|
||||
handler.sa_sigaction = sample_profile_frames as *const () as libc::sighandler_t;
|
||||
handler.sa_flags = libc::SA_RESTART;
|
||||
|
||||
let mut old_sigprof: libc::sigaction = unsafe { std::mem::zeroed() };
|
||||
|
||||
Reference in new issue
Block a user