Skip to content

Commit

Permalink
clipper.export.h - fixed bug in previous commit (AngusJohnson#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusJohnson committed May 14, 2024
1 parent efde1c9 commit ff37866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CPP/Clipper2Lib/include/clipper2/clipper.export.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ static Path<T> ConvertCPath(T* path)
T* v = path;
size_t cnt = static_cast<size_t>(*v);
v += 2; // skip 0 value
path.reserve(cnt);
result.reserve(cnt);
for (size_t j = 0; j < cnt; ++j)
{
T x = *v++, y = *v++;
path.push_back(Point<T>(x, y));
result.push_back(Point<T>(x, y));
}
return result;
}
Expand Down

0 comments on commit ff37866

Please sign in to comment.