Change FnAbi::fixed_count
to a u32
.
This commit is contained in:
parent
e4bf113027
commit
4df7bffa95
5 changed files with 7 additions and 6 deletions
|
@ -625,7 +625,7 @@ pub struct FnAbi<'a, Ty> {
|
|||
///
|
||||
/// Should only be different from args.len() when c_variadic is true.
|
||||
/// This can be used to know whether an argument is variadic or not.
|
||||
pub fixed_count: usize,
|
||||
pub fixed_count: u32,
|
||||
|
||||
pub conv: Conv,
|
||||
|
||||
|
@ -738,5 +738,5 @@ mod size_asserts {
|
|||
use rustc_data_structures::static_assert_size;
|
||||
// These are in alphabetical order, which is easy to maintain.
|
||||
static_assert_size!(ArgAbi<'_, usize>, 72);
|
||||
static_assert_size!(FnAbi<'_, usize>, 112);
|
||||
static_assert_size!(FnAbi<'_, usize>, 104);
|
||||
}
|
||||
|
|
|
@ -340,7 +340,7 @@ where
|
|||
arg,
|
||||
xlen,
|
||||
flen,
|
||||
i >= fn_abi.fixed_count,
|
||||
i >= fn_abi.fixed_count as usize,
|
||||
&mut avail_gprs,
|
||||
&mut avail_fprs,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue