From: Peter van Dijk Date: Thu, 15 Sep 2011 14:24:35 +0000 (+0000) Subject: don't truncate altitude in LOC records X-Git-Tag: auth-3.1-rc1~248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e843b4eb10341737062907bf619f1bbabb94a17;p=pdns don't truncate altitude in LOC records git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2268 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/sillyrecords.cc b/pdns/sillyrecords.cc index e7842560b..d2b8758e1 100644 --- a/pdns/sillyrecords.cc +++ b/pdns/sillyrecords.cc @@ -293,7 +293,7 @@ string LOCRecordContent::getZoneRepresentation() const double latitude= ((int32_t)d_latitude - (1<<31))/3600000.0; double longitude=((int32_t)d_longitude - (1<<31))/3600000.0; - double altitude= ((int32_t)d_altitude )/100 - 100000; + double altitude= ((int32_t)d_altitude )/100.0 - 100000; double size=0.01*((d_size>>4)&0xf); int count=d_size & 0xf;