From 95b3c92df7289fefa163367b8400523cae1926a6 Mon Sep 17 00:00:00 2001
From: Kurt Zeilenga <kurt@openldap.org>
Date: Mon, 31 May 1999 20:44:05 +0000
Subject: [PATCH] use 'int' instead of 'char' for balance factor. (barely) hide
 more internals.

---
 include/avl.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/avl.h b/include/avl.h
index aa9f58f66f..fe90302fb3 100644
--- a/include/avl.h
+++ b/include/avl.h
@@ -37,7 +37,7 @@ typedef struct avlnode Avlnode;
 #ifdef AVL_INTERNAL
 struct avlnode {
 	void*		avl_data;
-	signed char		avl_bf;
+	signed int		avl_bf;
 	struct avlnode	*avl_left;
 	struct avlnode	*avl_right;
 };
@@ -48,12 +48,13 @@ struct avlnode {
 #define LH 	(-1)
 #define EH 	0
 #define RH 	1
-#endif
 
 /* avl routines */
 #define avl_getone(x)	((x) == 0 ? 0 : (x)->avl_data)
 #define avl_onenode(x)	((x) == 0 || ((x)->avl_left == 0 && (x)->avl_right == 0))
 
+#endif /* AVL_INTERNALS */
+
 typedef int		(*AVL_APPLY) LDAP_P((void *, void*));
 typedef int		(*AVL_CMP) LDAP_P((void*, void*));
 typedef int		(*AVL_DUP) LDAP_P((void*, void*));
-- 
GitLab