fix test for borked lat/lons

This commit is contained in:
Dennis Luxen 2014-03-06 18:03:47 +01:00
parent 3b29eeb6b6
commit 0b3f3bdf92

View File

@ -44,11 +44,11 @@ FixedPointCoordinate::FixedPointCoordinate(int lat, int lon)
: lat(lat),
lon(lon)
{
if(0 != (lat >> 30)) {
if(0 != (std::abs(lat) >> 30)) {
std::bitset<32> y(lat);
SimpleLogger().Write(logDEBUG) << "broken lat: " << lat << ", bits: " << y;
}
if(0 != (lon >> 30)) {
if(0 != (std::abs(lon) >> 30)) {
std::bitset<32> x(lon);
SimpleLogger().Write(logDEBUG) << "broken lon: " << lon << ", bits: " << x;
}