projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1c8671
)
typesafe_cb: fix !gcc case
author
Rusty Russell
<rusty@rustcorp.com.au>
Sun, 23 May 2010 11:02:53 +0000
(20:32 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Sun, 23 May 2010 11:02:53 +0000
(20:32 +0930)
ccan/typesafe_cb/typesafe_cb.h
patch
|
blob
|
history
diff --git
a/ccan/typesafe_cb/typesafe_cb.h
b/ccan/typesafe_cb/typesafe_cb.h
index 02b4d72317031ecf223bc80aaeaa2948e20fdeaa..98d0d4f058657e33b1406a620cce5ba04ef84251 100644
(file)
--- 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, dest
type) ((desttype)(expr))
+#define cast_if_type(
desttype, expr, ok
type) ((desttype)(expr))
#endif
/**