aboutsummaryrefslogtreecommitdiff
path: root/lib/algo/avl_tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/algo/avl_tree.c')
-rw-r--r--lib/algo/avl_tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/algo/avl_tree.c b/lib/algo/avl_tree.c
index 9d38662..3b5c8aa 100644
--- a/lib/algo/avl_tree.c
+++ b/lib/algo/avl_tree.c
@@ -5,7 +5,7 @@
#include <stdio.h>
// Get the height of an AVL node
-uint8_t get_height(struct AVLNode* node)
+AvlHeight_t get_height(struct AVLNode* node)
{
if (node == NULL) {
return 0;
@@ -14,7 +14,7 @@ uint8_t get_height(struct AVLNode* node)
}
// Get the Maximum Height between two
-uint8_t max_height(uint8_t a, uint8_t b)
+AvlHeight_t max_height(AvlHeight_t a, AvlHeight_t b)
{
return (a > b) ? a : b;
}