X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2Ftypesafe_cb.h;h=98d0d4f058657e33b1406a620cce5ba04ef84251;hp=02b4d72317031ecf223bc80aaeaa2948e20fdeaa;hb=7748c8da00c56545fc9fe6fa79c90be01651f31a;hpb=b1c867121f379d76dc7fb7d99bae77e2b7d99841 diff --git a/ccan/typesafe_cb/typesafe_cb.h b/ccan/typesafe_cb/typesafe_cb.h index 02b4d723..98d0d4f0 100644 --- a/ccan/typesafe_cb/typesafe_cb.h +++ b/ccan/typesafe_cb/typesafe_cb.h @@ -33,7 +33,7 @@ __builtin_choose_expr(__builtin_types_compatible_p(typeof(1?(expr):0), oktype), \ (desttype)(expr), (expr)) #else -#define cast_if_type(expr, oktype, desttype) ((desttype)(expr)) +#define cast_if_type(desttype, expr, oktype) ((desttype)(expr)) #endif /**