From 552f8ac233c3404a41dec29c102f3df8723afa7b Mon Sep 17 00:00:00 2001 From: rydotyosh Date: Mon, 10 Dec 2018 21:45:46 +0900 Subject: [PATCH] Polygon: fixing printf format in Voronoi basic tutorial. Fixing printf format "%ud" to "%u" --- example/voronoi_basic_tutorial.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example/voronoi_basic_tutorial.cpp b/example/voronoi_basic_tutorial.cpp index ea2b9e6..bf1c303 100644 --- a/example/voronoi_basic_tutorial.cpp +++ b/example/voronoi_basic_tutorial.cpp @@ -167,7 +167,7 @@ int main() { if (it->contains_point()) { std::size_t index = it->source_index(); Point p = points[index]; - printf("Cell #%ud contains a point: (%d, %d).\n", + printf("Cell #%u contains a point: (%d, %d).\n", cell_index, x(p), y(p)); } else { std::size_t index = it->source_index() - points.size(); @@ -175,14 +175,14 @@ int main() { Point p1 = high(segments[index]); if (it->source_category() == boost::polygon::SOURCE_CATEGORY_SEGMENT_START_POINT) { - printf("Cell #%ud contains segment start point: (%d, %d).\n", + printf("Cell #%u contains segment start point: (%d, %d).\n", cell_index, x(p0), y(p0)); } else if (it->source_category() == boost::polygon::SOURCE_CATEGORY_SEGMENT_END_POINT) { - printf("Cell #%ud contains segment end point: (%d, %d).\n", + printf("Cell #%u contains segment end point: (%d, %d).\n", cell_index, x(p0), y(p0)); } else { - printf("Cell #%ud contains a segment: ((%d, %d), (%d, %d)). \n", + printf("Cell #%u contains a segment: ((%d, %d), (%d, %d)). \n", cell_index, x(p0), y(p0), x(p1), y(p1)); } }