[PATCH 12/31] Address comparisons of signed vs unsigned in apps/statues/.

* apps/statues/io.hh: Use unsigned loop indices. --- milena/ChangeLog | 6 ++++++ milena/apps/statues/io.hh | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index 9bef11c..5ed7f50 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,11 @@ 2009-05-11 Roland Levillain <roland@lrde.epita.fr> + Address comparisons of signed vs unsigned in apps/statues/. + + * apps/statues/io.hh: Use unsigned loop indices. + +2009-05-11 Roland Levillain <roland@lrde.epita.fr> + * mln/topo/skeleton/breadth_first_thinning.hh: Aesthetic changes. 2009-05-11 Roland Levillain <roland@lrde.epita.fr> diff --git a/milena/apps/statues/io.hh b/milena/apps/statues/io.hh index 04ce871..cbced91 100644 --- a/milena/apps/statues/io.hh +++ b/milena/apps/statues/io.hh @@ -55,7 +55,7 @@ inline void write_verts_asc(TriMesh *mesh, FILE *f, const char *before_conf, const char *after_line) { - for (int i = 0; i < mesh->vertices.size(); i++) { + for (unsigned i = 0; i < mesh->vertices.size(); i++) { fprintf(f, "%s%.7g %.7g %.7g", before_vert, mesh->vertices[i][0], mesh->vertices[i][1], @@ -98,7 +98,7 @@ inline void write_faces_asc_colored(TriMesh *mesh, const char *after_line) { mesh->need_faces(); - for (int i = 0; i < mesh->faces.size(); i++) + for (unsigned i = 0; i < mesh->faces.size(); i++) { fprintf(f, "%s%d %d %d %d %d %d%s\n", before_face, @@ -135,7 +135,7 @@ inline void write_faces_asc_float(TriMesh *mesh, const char *after_line) { mesh->need_faces(); - for (int i = 0; i < mesh->faces.size(); i++) + for (unsigned i = 0; i < mesh->faces.size(); i++) { // Vertices Color // -------- ------------ @@ -177,7 +177,7 @@ inline void write_faces_asc_binary(TriMesh *mesh, const char *after_line) { mesh->need_faces(); - for (int i = 0; i < mesh->faces.size(); i++) + for (unsigned i = 0; i < mesh->faces.size(); i++) if (face_value[i]) { fprintf(f, "%s%d %d %d%s\n", -- 1.6.1.2
participants (1)
-
Roland Levillain