From 847a486288799598ef3fa9eccaa23e99665587aa Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Wed, 21 May 2014 19:06:06 +0300 Subject: [PATCH] fix from assign --- lib/vm/block.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vm/block.rb b/lib/vm/block.rb index 01f20460..b5ddea98 100644 --- a/lib/vm/block.rb +++ b/lib/vm/block.rb @@ -38,7 +38,7 @@ module Vm if kode.is_a? Hash raise "Hack only for 1 element #{inspect} #{kode.inspect}" unless kode.length == 1 instruction , result = kode.first - instruction.result = result + instruction.assign result kode = instruction end raise "alarm #{kode}" if kode.is_a? Word