Fix integers operation results being downcasted to floating point

Co-authored-by: manyrandomthings <42223559+manyrandomthings@users.noreply.github.com>
This commit is contained in:
altrisiandmanyrandomthings authored and gnembon committed 2023-05-05 00:14:28 +02:00
1 parent a8ead7ff24
commit 5759e23794
2 files changed
+6 -7

No files matched your search

@@ -55,7 +55,7 @@ public class Sys
{
if (v instanceof final NumericValue num)
{
return new NumericValue(num.isInteger() ? num.getLong() : num.getDouble());
return num.clone();
}
if (v instanceof ListValue || v instanceof MapValue)
{