Fix integers operation results being downcasted to floating point
Co-authored-by: manyrandomthings <42223559+manyrandomthings@users.noreply.github.com>
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user