diff options
| -rw-r--r-- | libcnary/node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcnary/node.c b/libcnary/node.c index 0a8f414..46532aa 100644 --- a/libcnary/node.c +++ b/libcnary/node.c | |||
| @@ -121,7 +121,7 @@ int node_insert(node_t* parent, unsigned int index, node_t* child) | |||
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | void node_debug(node_t* node) { | 123 | void node_debug(node_t* node) { |
| 124 | int i = 0; | 124 | unsigned int i = 0; |
| 125 | node_t* current = NULL; | 125 | node_t* current = NULL; |
| 126 | node_iterator_t* iter = NULL; | 126 | node_iterator_t* iter = NULL; |
| 127 | for(i = 0; i < node->depth; i++) { | 127 | for(i = 0; i < node->depth; i++) { |
| @@ -155,7 +155,7 @@ unsigned int node_n_children(struct node_t* node) | |||
| 155 | node_t* node_nth_child(struct node_t* node, unsigned int n) | 155 | node_t* node_nth_child(struct node_t* node, unsigned int n) |
| 156 | { | 156 | { |
| 157 | if (!node || !node->children || !node->children->begin) return NULL; | 157 | if (!node || !node->children || !node->children->begin) return NULL; |
| 158 | int index = 0; | 158 | unsigned int index = 0; |
| 159 | int found = 0; | 159 | int found = 0; |
| 160 | node_t *ch; | 160 | node_t *ch; |
| 161 | for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) { | 161 | for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) { |
