summaryrefslogtreecommitdiffhomepage
path: root/examples/new_pque.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/new_pque.c')
-rw-r--r--examples/new_pque.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/new_pque.c b/examples/new_pque.c
index 5048ea77..1485e630 100644
--- a/examples/new_pque.c
+++ b/examples/new_pque.c
@@ -16,8 +16,8 @@ struct MyStruct {
struct Point { int x, y; } typedef Point;
int Point_cmp(const Point* a, const Point* b) {
- int c = c_default_compare(&a->x, &b->x);
- return c ? c : c_default_compare(&a->y, &b->y);
+ int c = a->x - b->x;
+ return c ? c : a->y - b->y;
}
#define i_val Point