Ignore:
Timestamp:
2016-06-02T02:46:59+02:00 (4 years ago)
Author:
Don-vip
Message:

fix coverity 1313942 + 1353522 - Integer handling issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/GeoPropertyIndex.java

    r9070 r10316  
    7373
    7474    public static int index(LatLon ll, int level) {
    75         long noParts = 1 << level;
     75        long noParts = 1L << level;
    7676        long x = ((long) ((ll.lon() + 180.0) * noParts / 360.0)) & 1;
    7777        long y = ((long) ((ll.lat() + 90.0) * noParts / 180.0)) & 1;
Note: See TracChangeset for help on using the changeset viewer.