diff --git a/BGL/examples/BGL/borders.cpp b/BGL/examples/BGL/borders.cpp index 0d4c47b25a9..e2c848718f9 100644 --- a/BGL/examples/BGL/borders.cpp +++ b/BGL/examples/BGL/borders.cpp @@ -93,7 +93,7 @@ int main() std::cout << "POLYLINE" << std::endl; n = poly.size(); } - for(int j=0; j < n; j++){ + for(std::size_t j=0; j < n; j++){ std::cout << poly[j] << std::endl; } std::cout << std::endl; diff --git a/BGL/examples/BGL/split.cpp b/BGL/examples/BGL/split.cpp index a320ac7b1b7..28f547e39ff 100644 --- a/BGL/examples/BGL/split.cpp +++ b/BGL/examples/BGL/split.cpp @@ -103,7 +103,7 @@ int main() std::cout << "POLYLINE" << std::endl; n = poly.size(); } - for(int j=0; j < n; j++){ + for(std::size_t j=0; j < n; j++){ std::cout << poly[j] << std::endl; } std::cout << std::endl;