@@ -279,12 +279,12 @@ NormalMapGenerator::createNormalMap(const TileKey& key, const Map* map, unsigned
279279 double dv = 1.0 / (double )(tileSize - 1 );
280280
281281 // Process interior pixels only (excluding edges that need external sampling)
282- for (int t = 1 ; t < tileSize - 1 ; ++t)
282+ for (int t = 1 ; t < ( int ) tileSize - 1 ; ++t)
283283 {
284284 double v = (double )t / (double )(tileSize - 1 );
285285 double y_or_lat = ex.yMin () + v * ex.height ();
286286
287- for (int s = 1 ; s < tileSize - 1 ; ++s)
287+ for (int s = 1 ; s < ( int ) tileSize - 1 ; ++s)
288288 {
289289 double u = (double )s / (double )(tileSize - 1 );
290290 double x_or_lon = ex.xMin () + u * ex.width ();
@@ -330,28 +330,28 @@ NormalMapGenerator::createNormalMap(const TileKey& key, const Map* map, unsigned
330330 double r = res.getValue ();
331331
332332 // bottom row
333- for (int s = 0 ; s < tileSize; ++s)
333+ for (int s = 0 ; s < ( int ) tileSize; ++s)
334334 {
335335 double u = (double )s / (double )(tileSize - 1 );
336336 double x = ex.xMin () + u * ex.width ();
337337 w.vectorToSample .emplace_back (x, ex.yMin () - r, 0 , r);
338338 }
339339 // top row
340- for (int s = 0 ; s < tileSize; ++s)
340+ for (int s = 0 ; s < ( int ) tileSize; ++s)
341341 {
342342 double u = (double )s / (double )(tileSize - 1 );
343343 double x = ex.xMin () + u * ex.width ();
344344 w.vectorToSample .emplace_back (x, ex.yMax () + r, 0 , r);
345345 }
346346 // left column
347- for (int t = 0 ; t < tileSize; ++t)
347+ for (int t = 0 ; t < ( int ) tileSize; ++t)
348348 {
349349 double v = (double )t / (double )(tileSize - 1 );
350350 double y = ex.yMin () + v * ex.height ();
351351 w.vectorToSample .emplace_back (ex.xMin () - r, y, 0 , r);
352352 }
353353 // right column
354- for (int t = 0 ; t < tileSize; ++t)
354+ for (int t = 0 ; t < ( int ) tileSize; ++t)
355355 {
356356 double v = (double )t / (double )(tileSize - 1 );
357357 double y = ex.yMin () + v * ex.height ();
@@ -390,12 +390,12 @@ NormalMapGenerator::createNormalMap(const TileKey& key, const Map* map, unsigned
390390 double dy = srs->transformDistance (res, Units::METERS, 0.0 );
391391
392392 // Process all edge pixels
393- for (int t = 0 ; t < tileSize; ++t)
393+ for (int t = 0 ; t < ( int ) tileSize; ++t)
394394 {
395- for (int s = 0 ; s < tileSize; ++s)
395+ for (int s = 0 ; s < ( int ) tileSize; ++s)
396396 {
397397 // Skip interior pixels - they were already processed
398- if (t > 0 && t < tileSize - 1 && s > 0 && s < tileSize - 1 )
398+ if (t > 0 && t < ( int ) tileSize - 1 && s > 0 && s < ( int ) tileSize - 1 )
399399 continue ;
400400
401401 double u = (double )s / (double )(tileSize - 1 );
0 commit comments