diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/astar.c | 2 | ||||
| -rw-r--r-- | examples/mmap.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/astar.c b/examples/astar.c index 8c37d070..651886e9 100644 --- a/examples/astar.c +++ b/examples/astar.c @@ -26,7 +26,7 @@ point_init(int x, int y, int width) int
point_compare_priority(const point* a, const point* b)
{
- return a->priorty < b->priorty;
+ return c_default_compare(&a->priorty, &b->priorty);
}
int
diff --git a/examples/mmap.c b/examples/mmap.c index 2defbd96..8ecaa6f5 100644 --- a/examples/mmap.c +++ b/examples/mmap.c @@ -1,7 +1,6 @@ // This implements the multimap c++ example found at:
// https://en.cppreference.com/w/cpp/container/multimap/insert
-#include <stc/cstr.h>
// Map of int => clist_str. Note the negation of c_default_compare
#define i_val_str
#include <stc/clist.h>
|
