diff --git a/OsmAnd-java/src/net/osmand/osm/edit/OsmMapUtils.java b/OsmAnd-java/src/net/osmand/osm/edit/OsmMapUtils.java index feca02e3cf..103698823b 100644 --- a/OsmAnd-java/src/net/osmand/osm/edit/OsmMapUtils.java +++ b/OsmAnd-java/src/net/osmand/osm/edit/OsmMapUtils.java @@ -349,7 +349,7 @@ public class OsmMapUtils { */ public static double polygonAreaPixels(List nodes, int zoom) { double area = 0.; - double mult = 1 / MapUtils.getPowZoom(Math.max(31 - (zoom + 8), 0)); + double mult = 1 / MapUtils.getPowZoom((double)Math.max(31 - (zoom + 8), 0)); int j = nodes.size() - 1; for (int i = 0; i < nodes.size(); i++) { Node x = nodes.get(i);