Commit 3b9d55bd authored by Rusty Russell's avatar Rusty Russell

typesafe_cb: 64 bit fixes.

In particular, gcc warns about cast from int to pointer.
parent e93f8431
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment