Skip to content
Permalink
Browse files
mapscript/php/map.c: use labs() to fix compiler warning
  • Loading branch information
rouault committed Jan 17, 2020
1 parent 5158178 commit a763545ba0769e2f68f477a485757130e95dd760
Showing 1 changed file with 4 additions and 4 deletions.
@@ -1195,13 +1195,13 @@ PHP_METHOD(mapObj, zoomPoint)

if (zoomFactor < 0) {
newGeoRefExtent.minx =
dfGeoPosX - (dfDeltaX/2)*(abs(zoomFactor));
dfGeoPosX - (dfDeltaX/2)*(labs(zoomFactor));
newGeoRefExtent.miny =
dfGeoPosY - (dfDeltaY/2)*(abs(zoomFactor));
dfGeoPosY - (dfDeltaY/2)*(labs(zoomFactor));
newGeoRefExtent.maxx =
dfGeoPosX + (dfDeltaX/2)*(abs(zoomFactor));
dfGeoPosX + (dfDeltaX/2)*(labs(zoomFactor));
newGeoRefExtent.maxy =
dfGeoPosY + (dfDeltaY/2)*(abs(zoomFactor));
dfGeoPosY + (dfDeltaY/2)*(labs(zoomFactor));
}
if (zoomFactor == 1) {
newGeoRefExtent.minx = dfGeoPosX - (dfDeltaX/2);

0 comments on commit a763545

Please sign in to comment.