X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_fail-cast_if_type.c;h=610793514f9113753598cadec668787d76b10d48;hp=1e417cbac6bb869b43693087fe827380389d1cf8;hb=3b9d55bd9c9180cc94de96bf60f7bfa5d5f8f2cc;hpb=650c775ff00cccd03fc84e7789a03c51d9839004 diff --git a/ccan/typesafe_cb/test/compile_fail-cast_if_type.c b/ccan/typesafe_cb/test/compile_fail-cast_if_type.c index 1e417cba..61079351 100644 --- a/ccan/typesafe_cb/test/compile_fail-cast_if_type.c +++ b/ccan/typesafe_cb/test/compile_fail-cast_if_type.c @@ -1,4 +1,4 @@ -#include "typesafe_cb/typesafe_cb.h" +#include void _set_some_value(void *val); @@ -7,7 +7,7 @@ void _set_some_value(void *val) } #define set_some_value(expr) \ - _set_some_value(cast_if_type((expr), unsigned long, void *)) + _set_some_value(cast_if_type(void *, (expr), (expr), unsigned long)) int main(int argc, char *argv[]) {