Testing works, stack-overflow fixed
This commit is contained in:
parent
5e2f4d464d
commit
35b2aa4a2f
5 changed files with 34 additions and 20 deletions
|
|
@ -169,14 +169,14 @@ namespace GC
|
|||
*
|
||||
* @returns The pointer to the chunk at position n in list.
|
||||
*/
|
||||
Chunk *Heap::get_at(std::vector<Chunk *> &list, size_t n)
|
||||
{
|
||||
auto iter = list.begin();
|
||||
if (!n)
|
||||
return *iter;
|
||||
std::advance(iter, n);
|
||||
return *iter;
|
||||
}
|
||||
// Chunk *Heap::get_at(std::vector<Chunk *> &list, size_t n)
|
||||
// {
|
||||
// auto iter = list.begin();
|
||||
// if (!n)
|
||||
// return *iter;
|
||||
// std::advance(iter, n);
|
||||
// return *iter;
|
||||
// }
|
||||
|
||||
/**
|
||||
* Returns a bool whether the profiler is enabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue