Quite compiler warnings.

This commit is contained in:
Tamito Kajiyama 2014-04-18 09:25:36 +09:00
parent 4ed16bc3e6
commit 6161e4420e
2 changed files with 2 additions and 2 deletions

@ -761,7 +761,7 @@ void BlenderFileLoader::insertShapeNode(ObjectInstanceRen *obi, int id)
}
if (G.debug & G_DEBUG_FREESTYLE) {
printf("Warning: Object %s contains %lu degenerated triangle%s (strokes may be incorrect)\n",
name, detriList.size(), (detriList.size() > 1) ? "s" : "");
name, (long unsigned int)detriList.size(), (detriList.size() > 1) ? "s" : "");
}
}

@ -164,7 +164,7 @@ int ChainSilhouetteIterator::traverse(const AdjacencyIterator& ait)
Nature::RIDGE
};
int numNatures = sizeof(natures) / sizeof(Nature::EdgeNature);
for (unsigned int i = 0; i < numNatures; ++i) {
for (int i = 0; i < numNatures; ++i) {
if (getCurrentEdge()->getNature() & natures[i]) {
int n = 0;
while (!it.isEnd()) {