diff --git a/src/proj_transform.cpp b/src/proj_transform.cpp index 3ffd7f7e9..b604fa094 100644 --- a/src/proj_transform.cpp +++ b/src/proj_transform.cpp @@ -150,7 +150,7 @@ bool proj_transform::backward (double * x, double * y , double * z, int point_co } } - do { + { #if defined(MAPNIK_THREADSAFE) && PJ_VERSION < 480 mutex::scoped_lock lock(projection::mutex_); #endif @@ -160,7 +160,7 @@ bool proj_transform::backward (double * x, double * y , double * z, int point_co { return false; } - } while(false); + } if (is_source_longlat_) { diff --git a/src/warp.cpp b/src/warp.cpp index ee0dc6a05..60232b01e 100644 --- a/src/warp.cpp +++ b/src/warp.cpp @@ -58,17 +58,19 @@ void reproject_and_scale_raster(raster & target, raster const& source, CoordTransform tt(target.data_.width(), target.data_.height(), target.ext_, offset_x, offset_y); unsigned i, j; - unsigned mesh_nx = ceil(source.data_.width()/double(mesh_size)+1); - unsigned mesh_ny = ceil(source.data_.height()/double(mesh_size)+1); + unsigned mesh_nx = ceil(source.data_.width()/double(mesh_size) + 1); + unsigned mesh_ny = ceil(source.data_.height()/double(mesh_size) + 1); ImageData xs(mesh_nx, mesh_ny); ImageData ys(mesh_nx, mesh_ny); // Precalculate reprojected mesh - for(j=0; j