Fix warnings about questionable numeric operations

This commit is contained in:
Eric Fischer
2016-04-27 11:57:46 -07:00
parent d4504da2f5
commit 737ae44dd7
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -38,11 +38,11 @@ void tile2latlon(long long x, long long y, int zoom, double *lat, double *lon) {
}
unsigned long long encode(unsigned int wx, unsigned int wy) {
long long out = 0;
unsigned long long out = 0;
int i;
for (i = 0; i < 32; i++) {
long long v = ((wx >> (32 - (i + 1))) & 1) << 1;
unsigned long long v = ((wx >> (32 - (i + 1))) & 1) << 1;
v |= (wy >> (32 - (i + 1))) & 1;
v = v << (64 - 2 * (i + 1));