From 8074058c2b67df8b281ada95f863df2b85b65d16 Mon Sep 17 00:00:00 2001 From: snaulX Date: Sun, 22 Sep 2019 19:11:05 +0300 Subject: [PATCH] Fix ParseDoubleExpression --- wolvm/expressions/ParseDoubleExpression.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolvm/expressions/ParseDoubleExpression.cs b/wolvm/expressions/ParseDoubleExpression.cs index 3587c08..f852ebf 100644 --- a/wolvm/expressions/ParseDoubleExpression.cs +++ b/wolvm/expressions/ParseDoubleExpression.cs @@ -8,7 +8,9 @@ public class ParseDoubleExpression : VMExpression { public Value ParseExpression(params Value[] args) { - return new Value(new wolString(((wolDouble)args[0].type).value.ToString())); + wolDouble type = new wolDouble(); + type.ParseDouble(((wolString)args[0].type).value); + return new Value(type); } } }