Cleanup: Resolve integer type conversion warnings

This commit is contained in:
Hans Goudey 2024-04-12 11:29:20 -04:00
parent a4b36cd0d5
commit 2361f90264
2 changed files with 2 additions and 2 deletions

@ -2290,7 +2290,7 @@ static bool is_auto_smooth_node_tree(const bNodeTree &group)
}
if (static_cast<bNodeSocket *>(nodes[4]->inputs.last)
->default_value_typed<bNodeSocketValueBoolean>()
->value != true)
->value != 1)
{
return false;
}

@ -476,7 +476,7 @@ static const char *load_face_element(PlyReadBuffer &file,
/* Previous python based importer was accepting faces with fewer
* than 3 vertices, and silently dropping them. */
if (count < 3) {
fprintf(stderr, "PLY Importer: ignoring face %i (%i vertices)\n", i, count);
fprintf(stderr, "PLY Importer: ignoring face %i (%i vertices)\n", i, int(count));
}
else {
ptr = scratch.data();