X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fasort%2Fasort.h;h=731f9bde4cc1e868bec846c19dff1b7502fc204b;hb=d208258f51ac8c3b355cd31a874dcf93099b3e98;hp=ffef1f6fe9e394b9697812982cfd46e964436e4f;hpb=b1c867121f379d76dc7fb7d99bae77e2b7d99841;p=ccan diff --git a/ccan/asort/asort.h b/ccan/asort/asort.h index ffef1f6f..731f9bde 100644 --- a/ccan/asort/asort.h +++ b/ccan/asort/asort.h @@ -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))