Commit ad43b47a by Guozhi Wei Committed by Wei Guozhi

sparseset.h (sparseset_pop): Fix the wrong index.

	* sparseset.h (sparseset_pop): Fix the wrong index.

From-SVN: r208091
parent b2afe274
2014-02-24 Guozhi Wei <carrot@google.com>
* sparseset.h (sparseset_pop): Fix the wrong index.
2014-02-24 Walter Lee <walt@tilera.com> 2014-02-24 Walter Lee <walt@tilera.com>
* config.gcc (tilepro-*-*): Change to tilepro*-*-*. * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
......
...@@ -177,7 +177,7 @@ sparseset_pop (sparseset s) ...@@ -177,7 +177,7 @@ sparseset_pop (sparseset s)
gcc_checking_assert (mem != 0); gcc_checking_assert (mem != 0);
s->members = mem - 1; s->members = mem - 1;
return s->dense[mem]; return s->dense[s->members];
} }
static inline void static inline void
......
Markdown is supported
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