Skip to content

Commit

Permalink
Fix ParseDoubleExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
snaulX committed Sep 22, 2019
1 parent 23fc93e commit 8074058
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wolvm/expressions/ParseDoubleExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 8074058

Please sign in to comment.