Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix new[] usage in treetest to refer that defined in class gc
(fix of commit 9e27ff8, d6600fe) Now, both `new[]` and `delete[]` operators invoked in `tree.cc` refer to that of class `gc`, not to the global definition. * tests/tree.cc (PTree): Define as a class (derived from class `gc`) with `ptr` field. * tests/tree.cc (Tree::Tree, Tree::~Tree, Tree::verify): Change `m_nodes[i]` to `m_nodes[i].ptr`. * tests/tree.cc [GC_OPERATOR_NEW_ARRAY] (Tree::~Tree): Replace `GC_NS_QUALIFY(gc)::operator delete[]()` to `delete[]`.
- Loading branch information