Skip to content

Commit

Permalink
Make constant value have type u32
Browse files Browse the repository at this point in the history
This way it is consistent with the rest of the file.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Jun 21, 2023
1 parent 91aba9f commit 374154a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/callback_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn main() {
"Would you like to proceed?\0"
.as_ptr()
.cast::<libc::c_char>(),
(&mut 0 as *mut i32).cast::<libc::c_void>(),
(&mut 0u32 as *mut u32).cast::<libc::c_void>(),
) == 0
)
}

0 comments on commit 374154a

Please sign in to comment.