Cleanup: Avoid combining signed and unsigned integers

https://wiki.blender.org/wiki/Style_Guide/C_Cpp#Integer_Types
This commit is contained in:
Hans Goudey
2023-10-02 17:38:50 -04:00
parent 4bc2ff71af
commit 6305902b24

View File

@@ -57,7 +57,7 @@ class FairingContext {
float r_adj_prev[3]) = 0;
/* Get the other vertex index for a loop. */
virtual int other_vertex_index_from_loop(const int loop, const uint v) = 0;
virtual int other_vertex_index_from_loop(const int loop, const int v) = 0;
int vertex_count_get()
{
@@ -234,7 +234,7 @@ class MeshFairingContext : public FairingContext {
copy_v3_v3(r_adj_prev, co_[adjecent_verts[1]]);
}
int other_vertex_index_from_loop(const int loop, const uint v) override
int other_vertex_index_from_loop(const int loop, const int v) override
{
const blender::int2 &edge = edges_[corner_edges_[loop]];
return blender::bke::mesh::edge_other_vert(edge, v);
@@ -299,7 +299,7 @@ class BMeshFairingContext : public FairingContext {
copy_v3_v3(r_adj_prev, bmloop_[loop]->prev->v->co);
}
int other_vertex_index_from_loop(const int loop, const uint v) override
int other_vertex_index_from_loop(const int loop, const int v) override
{
BMLoop *l = bmloop_[loop];
BMVert *bmvert = BM_vert_at_index(bm, v);