changeset 1065:11c9faf03f52

pass rbTreeTest5_1
author matac42 <matac@cr.ie.u-ryukyu.ac.jp>
date Sun, 04 Feb 2024 16:54:32 +0900
parents 54130b333e86
children bd8d529b1432
files src/parallel_execution/RedBlackTree.cbc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/RedBlackTree.cbc	Sun Feb 04 16:10:58 2024 +0900
+++ b/src/parallel_execution/RedBlackTree.cbc	Sun Feb 04 16:54:32 2024 +0900
@@ -203,6 +203,10 @@
 __code rightDown1(struct RedBlackTree* tree, struct Stack* stack) {
     printf("rightDown1\n");
 
+    if (tree->current == NULL) {
+        goto swap();
+    }
+
     if (tree->current->right == NULL) {
         goto up();
     }