summaryrefslogtreecommitdiffhomepage
path: root/misc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-10 13:28:47 +0100
committerTyge Løvset <[email protected]>2023-02-10 13:28:47 +0100
commit9f8fc0e6b9bb56ea5cf9fbb27e25326f5cb96891 (patch)
tree33387b7c11a80d9727927c79c33687db249409cf /misc
parentfaf7ddf7a6d36b08b57a2bcd67d2d12815453d1d (diff)
downloadSTC-modified-9f8fc0e6b9bb56ea5cf9fbb27e25326f5cb96891.tar.gz
STC-modified-9f8fc0e6b9bb56ea5cf9fbb27e25326f5cb96891.zip
Added struct name to typedef to allow container pointer predecarations.
Diffstat (limited to 'misc')
-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>