]> git.ozlabs.org Git - ccan/blobdiff - ccan/asort/asort.h
typesafe_cb: fix fallout from API changes.
[ccan] / ccan / asort / asort.h
index ffef1f6fe9e394b9697812982cfd46e964436e4f..731f9bde4cc1e868bec846c19dff1b7502fc204b 100644 (file)
@@ -19,7 +19,7 @@
 #define asort(base, num, cmp, ctx)                                     \
 _asort((base), (num), sizeof(*(base)),                                 \
        cast_if_type(int (*)(const void *, const void *, const void *), \
-                   (cmp),                                              \
+                   (cmp), &*(cmp),                                     \
                    int (*)(const __typeof__(*(base)) *,                \
                            const __typeof__(*(base)) *,                \
                            __typeof__(ctx))), (ctx))