From 799c8b69224ca16f7baf0f662cf9acce7a89e384 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 27 Feb 2017 10:42:19 +0100 Subject: [PATCH] Fixed a shadowed variable warning in clipper --- polygon/clipper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polygon/clipper.cpp b/polygon/clipper.cpp index 6ed2b7c967..3a04cd8f6c 100644 --- a/polygon/clipper.cpp +++ b/polygon/clipper.cpp @@ -3215,7 +3215,7 @@ void Clipper::BuildResult(Paths &polys) int cnt = PointCount(p); if (cnt < 2) continue; pg.reserve(cnt); - for (int i = 0; i < cnt; ++i) + for (int j = 0; j < cnt; ++j) { pg.push_back(p->Pt); p = p->Prev;