Commit 4eb19118ef5f5f0a196e8ca1c6b21ad54fa71bb7

Authored by Lawrence Chit
1 parent ecb75377cf
Exists in master

Set temp node to 'this'

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -37,7 +37,7 @@
37 37 */ // TODO
38 38 BSTNode<Data>* successor() {
39 39  
40   - BSTNode<Data>* temp;
  40 + BSTNode<Data>* temp = this;
41 41 if(right){
42 42 if(!left){
43 43 return right;