extern-fn-explicit-align test: use ffi::c_char instead of i8
This commit is contained in:
parent
fdaaf86cc0
commit
84ff2e3d1c
1 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// Issue #80127: Passing structs via FFI should work with explicit alignment.
|
||||
|
||||
use std::ffi::CString;
|
||||
use std::ffi::{CString, c_char};
|
||||
use std::ptr::null_mut;
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
|
|
@ -23,7 +23,7 @@ extern "C" {
|
|||
fn many_args(
|
||||
a: *mut (),
|
||||
b: *mut (),
|
||||
c: *const i8,
|
||||
c: *const c_char,
|
||||
d: u64,
|
||||
e: bool,
|
||||
f: BoolAndU32,
|
||||
|
|
@ -33,7 +33,7 @@ extern "C" {
|
|||
j: *mut (),
|
||||
k: *mut (),
|
||||
l: *mut (),
|
||||
m: *const i8,
|
||||
m: *const c_char,
|
||||
) -> i32;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue