Skip to content

Commit

Permalink
Remove unnecessary casts
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Sep 7, 2024
1 parent d8ffcc9 commit 1a60ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/de/blau/android/layer/data/MapOverlay.java
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ private void drawWayArrows(@NonNull Canvas canvas, float[] linePoints, int lineP
if (addHandles) {
double len = Math.hypot(xDelta, yDelta);
if (len > minLen) {
handles.put(((long) (Float.floatToRawIntBits(x1 + xDelta / 2)) << 32) + (long) Float.floatToRawIntBits(y1 + yDelta / 2));
handles.put(((long) (Float.floatToRawIntBits(x1 + xDelta / 2)) << 32) + Float.floatToRawIntBits(y1 + yDelta / 2));
xDelta = xDelta / 4;
yDelta = yDelta / 4;
secondArrow = true;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/blau/android/osm/ViewBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public void zoom(float zoomFactor) {
if (tmpLeft + horizontalChange < -GeoMath.MAX_LON_E7) {
long rest = left + horizontalChange + GeoMath.MAX_LON_E7;
tmpLeft = -GeoMath.MAX_LON_E7;
tmpRight = Math.min((long) GeoMath.MAX_LON_E7, tmpRight - rest);
tmpRight = Math.min(GeoMath.MAX_LON_E7, tmpRight - rest);
} else {
tmpLeft = tmpLeft + horizontalChange;
}
Expand Down

0 comments on commit 1a60ec1

Please sign in to comment.