diff --git a/src/interpreter/instructions/argument_get.rs b/src/interpreter/instructions/argument_get.rs index dd161e1..3b95405 100644 --- a/src/interpreter/instructions/argument_get.rs +++ b/src/interpreter/instructions/argument_get.rs @@ -8,7 +8,7 @@ executable_instruction!( move |runtime| -> _ { let invocation_inputs = runtime.invocation_inputs; - if index >= (invocation_inputs.len() as u32) { + if (index as usize) >= invocation_inputs.len() { return Err(InstructionError::new( instruction, InstructionErrorKind::InvocationInputIsMissing { index },