1
0

Fix STR$*INT

This commit is contained in:
otya128
2016-12-08 22:48:44 +09:00
parent aa6e2aeb42
commit 715c617b8e

View File

@@ -577,6 +577,10 @@ class Operate : Code
//mul = (x, y, z) => z > 0 ? x ~ mul(x , y, z - 1) : "";
//vm.push(Value(mul(ls, ls, cast(int)rd)));
import std.array : replicate;
if (rd < 0)
{
throw new OutOfRange();
}
vm.push(Value(replicate(ls, cast(int)rd)));
}
return;