fix vm bug; "if" works now!

This commit is contained in:
Jeremy Penner 2011-09-16 19:10:15 -04:00
parent 15f4b500c2
commit e9d1909987

2
vm.py
View file

@ -70,7 +70,7 @@ class Vm(TPrs):
elif callable(instr):
synt = instr(self)
if synt != None:
(r, ip) = self.CallI(instr, r, ip)
(r, ip) = self.CallI(synt, r, ip)
else:
assert False, "invalid instr " + str(instr)
else: