summaryrefslogtreecommitdiffhomepage
path: root/misc/examples
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples')
-rw-r--r--misc/examples/new_pque.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/new_pque.c b/misc/examples/new_pque.c
index 1442f376..57f27dc4 100644
--- a/misc/examples/new_pque.c
+++ b/misc/examples/new_pque.c
@@ -4,7 +4,7 @@ struct Point { int x, y; } typedef Point;
#define i_type PointQ
#define i_val Point
-#define i_less(a, b) a->x < b->x || a->x == b->x && a->y < b->y
+#define i_less(a, b) a->x < b->x || (a->x == b->x && a->y < b->y)
#include <stc/cpque.h>