summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree.h b/src/tree.h
index 412ebfe..3d2c113 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -64,8 +64,8 @@ mq_tree_insert_sibling_allocated(MqTree *node, MqTree *sibling, gpointer data);
void
mq_tree_remove(MqTree *node);
-#define mq_tree_size(node) ((node) ? (((MqTree *) (node))->size) : NULL)
-#define mq_tree_position(node) ((node) ? (((MqTree *) (node))->position) : NULL)
+#define mq_tree_size(node) ((node) ? (((MqTree *) (node))->size) : -1)
+#define mq_tree_position(node) ((node) ? (((MqTree *) (node))->position) : -1)
#define mq_tree_root(node) ((node) ? (((MqTree *) (node))->root) : NULL)
#define mq_tree_previous(node) ((node) ? (((MqTree *) (node))->prev) : NULL)
#define mq_tree_next(node) ((node) ? (((MqTree *) (node))->prev) : NULL)