Skip to content

Commit 340b1f4

Browse files
committed
Refixed utility
1 parent 8f67e5d commit 340b1f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utility/mapcode.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#undef LIMIT_TO_MICRODEGREES
4848

4949
#define my_isnan(x) (false)
50-
#define my_round(x) ((long) (floor((x) + 0.5)))
50+
#define my_round(x) ((int) (floor((x) + 0.5)))
5151

5252
static int selfCheckEnabled = 0;
5353

@@ -456,7 +456,7 @@ int main(const int argc, const char** argv)
456456
const char* suffix = strstr(mapcode, "-");
457457
extraDigits = 0;
458458
if (suffix != 0) {
459-
extraDigits = strlen(suffix) - 1;
459+
extraDigits = (int) (strlen(suffix) - 1);
460460
}
461461
selfCheckLatLonToMapcode(lat, lon, defaultTerritory, mapcode, extraDigits);
462462
}
@@ -651,7 +651,7 @@ int main(const int argc, const char** argv)
651651
srand(seed);
652652
}
653653
else {
654-
srand(time(0));
654+
srand((unsigned int) time(0));
655655
}
656656
}
657657
useXYZ = (strstr(cmd, "XYZ") != 0);

0 commit comments

Comments
 (0)