shithub: tinygl

Download patch

ref: d1d392a4c7d2a6a81a541cdac79321c60f4c82d3
parent: 938b6ffe056d125fd3907dfbfadaed1f6409eec4
author: gek169 <gek169>
date: Thu May 13 09:30:06 EDT 2021

Automatic commit.

--- a/include-demo/stringutil.h
+++ b/include-demo/stringutil.h
@@ -386,7 +386,7 @@
 	current_node->text = str_null_terminated_alloc(text_old, nbytes);
 	child_old = current_node->child;
 	current_node->child = STRUTIL_CALLOC(1, sizeof(strll));
-	current_node->child->child = child_old;
+	current_node->child->right = child_old;
 	current_node->child->text = strcatalloc(text_old + nbytes, "");
 	STRUTIL_FREE(text_old);
 	return current_node->child;
@@ -398,7 +398,7 @@
 	current_node->text = str_null_terminated_alloc(text_old, nbytes);
 	left_old = current_node->left;
 	current_node->left = STRUTIL_CALLOC(1, sizeof(strll));
-	current_node->left->left = left_old;
+	current_node->left->right = left_old;
 	current_node->left->text = strcatalloc(text_old + nbytes, "");
 	STRUTIL_FREE(text_old);
 	return current_node->left;