sparseset.h (sparseset_pop): Fix the wrong index.
* sparseset.h (sparseset_pop): Fix the wrong index. From-SVN: r208091
This commit is contained in:
parent
b2afe274d7
commit
ad43b47a25
@ -1,3 +1,7 @@
|
||||
2014-02-24 Guozhi Wei <carrot@google.com>
|
||||
|
||||
* sparseset.h (sparseset_pop): Fix the wrong index.
|
||||
|
||||
2014-02-24 Walter Lee <walt@tilera.com>
|
||||
|
||||
* config.gcc (tilepro-*-*): Change to tilepro*-*-*.
|
||||
|
@ -177,7 +177,7 @@ sparseset_pop (sparseset s)
|
||||
gcc_checking_assert (mem != 0);
|
||||
|
||||
s->members = mem - 1;
|
||||
return s->dense[mem];
|
||||
return s->dense[s->members];
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
Loading…
x
Reference in New Issue
Block a user