]> git.ozlabs.org Git - ccan/commitdiff
typesafe_cb: fix !gcc case
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 23 May 2010 11:02:53 +0000 (20:32 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 23 May 2010 11:02:53 +0000 (20:32 +0930)
ccan/typesafe_cb/typesafe_cb.h

index 02b4d72317031ecf223bc80aaeaa2948e20fdeaa..98d0d4f058657e33b1406a620cce5ba04ef84251 100644 (file)
@@ -33,7 +33,7 @@
 __builtin_choose_expr(__builtin_types_compatible_p(typeof(1?(expr):0), oktype), \
                        (desttype)(expr), (expr))
 #else
 __builtin_choose_expr(__builtin_types_compatible_p(typeof(1?(expr):0), oktype), \
                        (desttype)(expr), (expr))
 #else
-#define cast_if_type(expr, oktype, desttype) ((desttype)(expr))
+#define cast_if_type(desttype, expr, oktype) ((desttype)(expr))
 #endif
 
 /**
 #endif
 
 /**