Fix signed-unsigned compare

This commit is contained in:
ntfshard 2015-08-30 04:06:37 +03:00 committed by Alessandro Ranellucci
parent c90ecac48e
commit 7c7982d9f3
2 changed files with 2 additions and 2 deletions

View File

@ -685,7 +685,7 @@ SV*
polynode_children_2_perl(const ClipperLib::PolyNode& node) polynode_children_2_perl(const ClipperLib::PolyNode& node)
{ {
AV* av = newAV(); AV* av = newAV();
const unsigned int len = node.ChildCount(); const int len = node.ChildCount();
if (len > 0) av_extend(av, len-1); if (len > 0) av_extend(av, len-1);
for (int i = 0; i < len; ++i) { for (int i = 0; i < len; ++i) {
av_store(av, i, polynode2perl(*node.Childs[i])); av_store(av, i, polynode2perl(*node.Childs[i]));

View File

@ -429,7 +429,7 @@ void TriangleMesh::ReadFromPerl(SV* vertices, SV* facets)
// read geometry // read geometry
AV* vertices_av = (AV*)SvRV(vertices); AV* vertices_av = (AV*)SvRV(vertices);
for (unsigned int i = 0; i < stl.stats.number_of_facets; i++) { for (int i = 0; i < stl.stats.number_of_facets; i++) {
AV* facet_av = (AV*)SvRV(*av_fetch(facets_av, i, 0)); AV* facet_av = (AV*)SvRV(*av_fetch(facets_av, i, 0));
stl_facet facet; stl_facet facet;
facet.normal.x = 0; facet.normal.x = 0;