changeset 146:423141c31664

fix rotate
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 10 Nov 2016 09:27:01 +0900
parents cc071cf1ba85
children f2275f5777f4
files src/parallel_execution/rb_tree.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/rb_tree.c	Thu Nov 10 07:51:15 2016 +0900
+++ b/src/parallel_execution/rb_tree.c	Thu Nov 10 09:27:01 2016 +0900
@@ -242,7 +242,7 @@
     struct Node* tmp = node->right;
 
     if (parent) {
-        if (node == traverse->parent->left)
+        if (node == parent->left)
             parent->left = tmp;
         else
             parent->right = tmp;
@@ -280,7 +280,7 @@
     struct Node* tmp = node->left;
     
     if (parent) {
-        if (node == traverse->parent->left)
+        if (node == parent->left)
             parent->left = tmp;
         else
             parent->right = tmp;