Skip to content

Commit

Permalink
Fix signedness warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Sep 14, 2024
1 parent 37b929e commit 7c58a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meshers/blocky/voxel_blocky_model_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void rotate_mesh_arrays(Span<Vector3> vertices, Span<Vector3> normals, Span<floa

} else {
const unsigned int tangent_count = tangents.size() / 4;
ZN_ASSERT_RETURN(int(tangent_count) == normals.size());
ZN_ASSERT_RETURN(tangent_count == normals.size());

for (unsigned int ti = 0; ti < tangent_count; ++ti) {
const unsigned int i0 = ti * 4;
Expand Down Expand Up @@ -142,7 +142,7 @@ void rotate_mesh_arrays(Span<Vector3f> vertices, Span<Vector3f> normals, Span<fl

} else {
const unsigned int tangent_count = tangents.size() / 4;
ZN_ASSERT_RETURN(int(tangent_count) == normals.size());
ZN_ASSERT_RETURN(tangent_count == normals.size());

for (unsigned int ti = 0; ti < tangent_count; ++ti) {
const unsigned int i0 = ti * 4;
Expand Down

0 comments on commit 7c58a3d

Please sign in to comment.