Commit 93c05540 authored by Roland Levillain's avatar Roland Levillain
Browse files

Address comparisons of signed vs unsigned in apps/statues/.

	* apps/statues/io.hh: Use unsigned loop indices.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3812 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent d453bad5
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.
......@@ -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",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment