Fix PushImm

This commit is contained in:
otya128 committed 2016-12-18 18:54:27 +09:00
1 parent f948e6263e
commit e4b7b9f4c6
1 file changed
+6
+6
View File
@@ -352,6 +352,12 @@ class Push : Code
} }
override void execute(VM vm) override void execute(VM vm)
{ {
if (imm.type == ValueType.String)
{
//copy
vm.push(Value(imm.castDString));
return;
}
vm.push(imm); vm.push(imm);
} }
override string toString(VM vm) override string toString(VM vm)