summaryrefslogtreecommitdiff
path: root/rust/src/medium_level_il/function.rs
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-09-03 23:30:01 -0400
committerJosh Ferrell <josh@vector35.com>2025-09-03 23:30:01 -0400
commit9e3c5788421669152c81290d36fc207944fbc603 (patch)
treef4073d72ef158b0c50198ea91b8306b11da8990b /rust/src/medium_level_il/function.rs
parent7f4989a475d7cc30f790a977ab5518b05e27306a (diff)
Fix user stack var rust APIs
Diffstat (limited to 'rust/src/medium_level_il/function.rs')
-rw-r--r--rust/src/medium_level_il/function.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/medium_level_il/function.rs b/rust/src/medium_level_il/function.rs
index 8fe8ae44..ebe6e82e 100644
--- a/rust/src/medium_level_il/function.rs
+++ b/rust/src/medium_level_il/function.rs
@@ -118,7 +118,7 @@ impl MediumLevelILFunction {
}
pub fn create_user_stack_var<'a, C: Into<Conf<&'a Type>>>(
- self,
+ &self,
offset: i64,
var_type: C,
name: &str,
@@ -135,7 +135,7 @@ impl MediumLevelILFunction {
}
}
- pub fn delete_user_stack_var(self, offset: i64) {
+ pub fn delete_user_stack_var(&self, offset: i64) {
unsafe { BNDeleteUserStackVariable(self.function().handle, offset) }
}