add braces to remove ambiguous condition warning

SVN revision: 52246
This commit is contained in:
Vincent Torri 2010-09-14 15:57:20 +00:00
parent 2e87895f67
commit f7b1362905
1 changed files with 18 additions and 14 deletions

View File

@ -440,6 +440,7 @@ _eina_matrixsparse_row_idx_get(const Eina_Matrixsparse *m, unsigned long row)
}
else if (dir < 0)
{
for (; r; r = r->prev)
if (r->row == row)
{
@ -448,6 +449,7 @@ _eina_matrixsparse_row_idx_get(const Eina_Matrixsparse *m, unsigned long row)
}
else if (r->row < row)
return NULL;
}
return NULL;
}
@ -490,6 +492,7 @@ _eina_matrixsparse_row_cell_idx_get(const Eina_Matrixsparse_Row *r,
}
else if (dir < 0)
{
for (; r; c = c->prev)
if (c->col == col)
{
@ -498,6 +501,7 @@ _eina_matrixsparse_row_cell_idx_get(const Eina_Matrixsparse_Row *r,
}
else if (c->col < col)
return NULL;
}
return NULL;
}