Fix PushImm
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user