Skip to content

Commit

Permalink
cove Polygons: Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Jul 30, 2024
1 parent 40cda49 commit 7d0ee50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 3rd-party/cove/libvectorizer/Polygons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ Polygons::getPathPolygons(const Polygons::PathList& constpaths,
!cancel && pathsiterator != constpaths.end(); ++pathsiterator)
{
int len = pathsiterator->size();
if (len <= 2 && !pathsiterator->isClosed())
continue; // below specklesize and not handled correctly

point_t* pt = reinterpret_cast<point_t*>(malloc(len * sizeof(point_t))); // NOLINT
p = path_new();
if (!p || !pt)
Expand Down

0 comments on commit 7d0ee50

Please sign in to comment.