X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_fail-cast_if_type-promotable.c;fp=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_fail-cast_if_type-promotable.c;h=016d0e2a4f00da90d3b9f9da1fe1f4a6eb3137ec;hp=a0362485c54320e534002c92273199514bc07aa4;hb=3b9d55bd9c9180cc94de96bf60f7bfa5d5f8f2cc;hpb=e93f84317390c2c5ff6f960ebba255d118ff497f diff --git a/ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c b/ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c index a0362485..016d0e2a 100644 --- a/ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c +++ b/ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c @@ -6,7 +6,7 @@ static void _set_some_value(void *val) } #define set_some_value(expr) \ - _set_some_value(cast_if_type(void *, (expr), (expr), int)) + _set_some_value(cast_if_type(void *, (expr), (expr), long)) int main(int argc, char *argv[]) { @@ -16,7 +16,7 @@ int main(int argc, char *argv[]) #error "Unfortunately we don't fail if cast_if_type is a noop." #endif #else - int x = 0; + long x = 0; #endif set_some_value(x); return 0;