summaryrefslogtreecommitdiff
path: root/rust/src/types.rs
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2022-08-23 00:34:20 -0400
committerGlenn Smith <glenn@vector35.com>2022-09-29 21:02:25 -0400
commitb6442a914783cb2861ff8d1cd6a3865fed29e0f7 (patch)
tree2b45fe796746d52f32132447948b34092b5523d6 /rust/src/types.rs
parent0725c6fbd58b3d40ffefdb319121a29ba4168517 (diff)
DebugInfo: take entire Type for function instead of by-parts
Diffstat (limited to 'rust/src/types.rs')
-rw-r--r--rust/src/types.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/types.rs b/rust/src/types.rs
index 4f9d8bff..37a1330b 100644
--- a/rust/src/types.rs
+++ b/rust/src/types.rs
@@ -954,7 +954,7 @@ impl Type {
}
}
- pub fn function<'a, S: BnStrCompatible + Copy, T: Into<Conf<&'a Type>>>(
+ pub fn function<'a, S: BnStrCompatible + Clone, T: Into<Conf<&'a Type>>>(
return_type: T,
parameters: &[FunctionParameter<S>],
variable_arguments: bool,
@@ -998,7 +998,7 @@ impl Type {
};
unsafe {
- Self::ref_from_raw(BNCreateFunctionType(
+ Self::ref_from_raw(BNNewTypeReference(BNCreateFunctionType(
&mut return_type,
&mut raw_calling_convention,
raw_parameters.as_mut_ptr(),
@@ -1011,7 +1011,7 @@ impl Type {
0,
&mut return_regs,
BNNameType::NoNameType,
- ))
+ )))
}
}