Skip to content

Commit 9e3c578

Browse files
committed
Fix user stack var rust APIs
1 parent 7f4989a commit 9e3c578

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/src/medium_level_il/function.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl MediumLevelILFunction {
118118
}
119119

120120
pub fn create_user_stack_var<'a, C: Into<Conf<&'a Type>>>(
121-
self,
121+
&self,
122122
offset: i64,
123123
var_type: C,
124124
name: &str,
@@ -135,7 +135,7 @@ impl MediumLevelILFunction {
135135
}
136136
}
137137

138-
pub fn delete_user_stack_var(self, offset: i64) {
138+
pub fn delete_user_stack_var(&self, offset: i64) {
139139
unsafe { BNDeleteUserStackVariable(self.function().handle, offset) }
140140
}
141141

0 commit comments

Comments
 (0)