Skip to content

Commit 27c07a5

Browse files
committed
fix new function_casts_as_integer warning
1 parent e578cc1 commit 27c07a5

File tree

1 file changed

+1
-1
lines changed
  • signal-hook-registry/src

1 file changed

+1
-1
lines changed

signal-hook-registry/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ impl Slot {
177177
//
178178
// See #169.
179179

180-
new.sa_sigaction = handler as usize; // If it doesn't compile on AIX, upgrade the libc dependency
180+
new.sa_sigaction = handler as *const () as usize; // If it doesn't compile on AIX, upgrade the libc dependency
181181

182182
#[cfg(target_os = "nto")]
183183
let flags = 0;

0 commit comments

Comments
 (0)