eina: fix typo in matrixsparce.
authorCedric BAIL <c.bail@partner.samsung.com>
Thu, 5 Jun 2014 20:18:59 +0000 (22:18 +0200)
committerCedric BAIL <c.bail@partner.samsung.com>
Thu, 5 Jun 2014 20:18:59 +0000 (22:18 +0200)
CID 98417.

src/lib/eina/eina_matrixsparse.c

index e82212b..47a10ae 100644 (file)
@@ -481,7 +481,7 @@ _eina_matrixsparse_row_cell_idx_get(const Eina_Matrixsparse_Row *r,
    assert(dir != 0);
    if (dir > 0)
      {
-        for (; r; c = c->next)
+        for (; c; c = c->next)
            if (c->col == col)
              {
                 ((Eina_Matrixsparse_Row *)r)->last_used = c;
@@ -493,7 +493,7 @@ _eina_matrixsparse_row_cell_idx_get(const Eina_Matrixsparse_Row *r,
      }
    else if (dir < 0)
      {
-        for (; r; c = c->prev)
+        for (; c; c = c->prev)
           if (c->col == col)
             {
                ((Eina_Matrixsparse_Row *)r)->last_used = c;