diff --git a/2019/ruby/computer.rb b/2019/ruby/computer.rb index adb479d..6c5b953 100644 --- a/2019/ruby/computer.rb +++ b/2019/ruby/computer.rb @@ -94,7 +94,7 @@ class Computer opcode = OPCODES.fetch(instruction[-2..-1].to_i) @pc += 1 - n = opcode.arity - 3 + n = opcode.arity - 3 # subtract the memory, input, and output params args = (0...n).map {|i| mode = instruction[2-i] { ?0 } value = @memory.fetch(@pc + i) || 0