mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
Fix compilation under 5.20 (untested). #2109
This commit is contained in:
parent
adf3d615bd
commit
67bf99633e
5 changed files with 18 additions and 11 deletions
|
@ -542,7 +542,7 @@ polynode_children_2_perl(const ClipperLib::PolyNode& node)
|
|||
{
|
||||
AV* av = newAV();
|
||||
const unsigned int len = node.ChildCount();
|
||||
av_extend(av, len-1);
|
||||
if (len > 0) av_extend(av, len-1);
|
||||
for (int i = 0; i < len; ++i) {
|
||||
av_store(av, i, polynode2perl(*node.Childs[i]));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue