Commit 39b3f63d authored by Nikias Bassen's avatar Nikias Bassen

libcnary: silence two compiler warnings

parent a798afc8
...@@ -121,7 +121,7 @@ int node_insert(node_t* parent, unsigned int index, node_t* child) ...@@ -121,7 +121,7 @@ int node_insert(node_t* parent, unsigned int index, node_t* child)
} }
void node_debug(node_t* node) { void node_debug(node_t* node) {
int i = 0; unsigned int i = 0;
node_t* current = NULL; node_t* current = NULL;
node_iterator_t* iter = NULL; node_iterator_t* iter = NULL;
for(i = 0; i < node->depth; i++) { for(i = 0; i < node->depth; i++) {
...@@ -155,7 +155,7 @@ unsigned int node_n_children(struct node_t* node) ...@@ -155,7 +155,7 @@ unsigned int node_n_children(struct node_t* node)
node_t* node_nth_child(struct node_t* node, unsigned int n) node_t* node_nth_child(struct node_t* node, unsigned int n)
{ {
if (!node || !node->children || !node->children->begin) return NULL; if (!node || !node->children || !node->children->begin) return NULL;
int index = 0; unsigned int index = 0;
int found = 0; int found = 0;
node_t *ch; node_t *ch;
for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) { for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment