typesafe_cb: handle pointers to undefined struct types.
[ccan] / ccan / typesafe_cb / test / compile_fail-cast_if_type.c
index f5a02e41ed1a412a0fcef1e62840972fa9d9340f..610793514f9113753598cadec668787d76b10d48 100644 (file)
@@ -7,7 +7,7 @@ void _set_some_value(void *val)
 }
 
 #define set_some_value(expr)                                           \
-       _set_some_value(cast_if_type(void *, (expr), unsigned long))
+       _set_some_value(cast_if_type(void *, (expr), (expr), unsigned long))
 
 int main(int argc, char *argv[])
 {