From ba516631383b52312dcbad7db41f509ce7ef7bb7 Mon Sep 17 00:00:00 2001 From: gerard Date: Mon, 8 Jun 2026 14:28:43 +0200 Subject: [Rust] Fix typing in get_ssa_memory_definition --- rust/src/low_level_il/function.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rust/src/low_level_il/function.rs') diff --git a/rust/src/low_level_il/function.rs b/rust/src/low_level_il/function.rs index d4cd88cf..dedb7036 100644 --- a/rust/src/low_level_il/function.rs +++ b/rust/src/low_level_il/function.rs @@ -379,13 +379,13 @@ impl LowLevelILFunction { /// Returns the instruction that defines the given SSA Mem register. #[must_use] - pub fn get_ssa_memory_definition( + pub fn get_ssa_memory_definition( &self, - index: usize + index: u64 // source_memory_version in the llil instructions return u64 mem version ) -> Option> { use binaryninjacore_sys::BNGetLowLevelILSSAMemoryDefinition; let instr_idx = unsafe { - BNGetLowLevelILSSAMemoryDefinition(self.handle, index) + BNGetLowLevelILSSAMemoryDefinition(self.handle, index as usize) }; self.instruction_from_index(LowLevelInstructionIndex(instr_idx)) } -- cgit v1.3.1