From 523fc84bd6770c950d39bede79127515c131d121 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 30 Dec 2017 12:05:36 +0100 Subject: [PATCH] Fix issue with C++ --- m-rbtree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-rbtree.h b/m-rbtree.h index 8dd8f26f..3e11e7dc 100644 --- a/m-rbtree.h +++ b/m-rbtree.h @@ -98,7 +98,7 @@ #define RBTREEI_IS_RED(x) ((x)->color == RBTREE_RED) #define RBTREEI_IS_BLACK(x) ((x)->color == RBTREE_BLACK) #define RBTREEI_COPY_COLOR(x,y) ((x)->color = (y)->color) -#define RBTREEI_GET_COLOR(x) ((x)->color + 0) +#define RBTREEI_GET_COLOR(x) (true ? (x)->color : (x)->color) #define RBTREEI_SET_COLOR(x, c) ((x)->color = (c)) #define RBTREEI_GET_CHILD(x, n) ((x)->child[n]) #define RBTREEI_SET_CHILD(x, n, y) ((x)->child[n] = (y))