summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.h b/src/tree.h
index ae61e47..1ae0871 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -68,7 +68,7 @@ mq_tree_remove(MqTree *node);
#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)
+#define mq_tree_next(node) ((node) ? (((MqTree *) (node))->next) : NULL)
#define mq_tree_first_child(node) \
((node) ? (((MqTree *) (node))->first_child) : NULL)