Skip to content

Commit 46656f6

Browse files
RossComputerGuyEricson2314
authored andcommitted
fix(nix-bindings-rust): fix aarch64 abi support
1 parent 17f0e65 commit 46656f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nix-bindings-util/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ mod tests {
144144
raw::set_err_msg(
145145
ctx_ptr,
146146
raw::err_NIX_ERR_UNKNOWN.try_into().unwrap(),
147-
b"dummy error message\0".as_ptr() as *const i8,
147+
b"dummy error message\0".as_ptr() as *const std::os::raw::c_char,
148148
);
149149
}
150150
}

nix-bindings-util/src/string_return.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ mod tests {
7575
#[test]
7676
fn test_callback_result_string() {
7777
let mut ret: Result<String> = result_string_init!();
78-
let start: *const std::os::raw::c_char = b"helloGARBAGE".as_ptr() as *const i8;
78+
let start = b"helloGARBAGE".as_ptr() as *const std::os::raw::c_char;
7979
let n: std::os::raw::c_uint = 5;
8080
let user_data: *mut std::os::raw::c_void = callback_get_result_string_data(&mut ret);
8181
unsafe {

0 commit comments

Comments
 (0)