Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java	(revision 8362)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java	(revision 8364)
@@ -883,5 +883,5 @@
         if (useWiderHighlight) s+=widerHighlight;
         while(s >= size) {
-            int r = (int) Math.floor(s/2);
+            int r = (int) Math.floor(s/2d);
             g.fillRoundRect(p.x-r, p.y-r, s, s, r, r);
             s -= highlightStep;
Index: trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java	(revision 8362)
+++ trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java	(revision 8364)
@@ -370,6 +370,6 @@
         if (null == p)
             return new Point();
-        double x = (p.east()-center.east())/scale + getWidth()/2;
-        double y = (center.north()-p.north())/scale + getHeight()/2;
+        double x = (p.east()-center.east())/scale + getWidth()/2d;
+        double y = (center.north()-p.north())/scale + getHeight()/2d;
         return new Point2D.Double(x, y);
     }
Index: trunk/src/org/openstreetmap/josm/tools/ExifReader.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/ExifReader.java	(revision 8362)
+++ trunk/src/org/openstreetmap/josm/tools/ExifReader.java	(revision 8364)
@@ -207,16 +207,16 @@
         case 8:
             q = -1;
-            ax = width / 2;
-            ay = width / 2;
+            ax = width / 2d;
+            ay = width / 2d;
             break;
         case 3:
             q = 2;
-            ax = width / 2;
-            ay = height / 2;
+            ax = width / 2d;
+            ay = height / 2d;
             break;
         case 6:
             q = 1;
-            ax = height / 2;
-            ay = height / 2;
+            ax = height / 2d;
+            ay = height / 2d;
             break;
         default:
Index: trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java	(revision 8362)
+++ trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java	(revision 8364)
@@ -291,5 +291,5 @@
     public static String getURL(double dlat, double dlon, int zoom) {
         // Truncate lat and lon to something more sensible
-        int decimals = (int) Math.pow(10, zoom / 3);
+        int decimals = (int) Math.pow(10, zoom / 3d);
         double lat = Math.round(dlat * decimals);
         lat /= decimals;
