numbers in scarpet better handle long type values.

If possible, numbers that can be represented as longs (seeds, etc) will be handled as longs but they will loose their longinness with a single arithmetic operation.
This commit is contained in:
gnembon committed 2020-08-21 00:47:19 -03:00
1 parent bc9f3e89e0
commit 968ef0cd9f
8 files changed
+87 -24

No files matched your search

@@ -202,7 +202,7 @@ public class MapValue extends AbstractListValue implements ContainerValueInterfa
}
@Override
public double readNumber()
public double readDoubleNumber()
{
return (double)map.size();
}