diff --git a/src/main.rs b/src/main.rs index ab2d112..cf379a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ use std::io::{self, Read}; -fn opcode(input: &Vec, counter: &usize) -> usize { +fn opcode(input: &Vec, counter: usize) -> usize { let size: usize; let opcode = input[counter]; @@ -50,7 +50,7 @@ fn main() { while counter < input.len() { // get the instruction - oplength = opcode(&input, &counter); + oplength = opcode(&input, counter); counter += oplength; } }