Browse Source

typesafe_cb: fix !gcc case

Rusty Russell 16 years ago
parent
commit
7748c8da00
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ccan/typesafe_cb/typesafe_cb.h

+ 1 - 1
ccan/typesafe_cb/typesafe_cb.h

@@ -33,7 +33,7 @@
 __builtin_choose_expr(__builtin_types_compatible_p(typeof(1?(expr):0), oktype), \
 __builtin_choose_expr(__builtin_types_compatible_p(typeof(1?(expr):0), oktype), \
 			(desttype)(expr), (expr))
 			(desttype)(expr), (expr))
 #else
 #else
-#define cast_if_type(expr, oktype, desttype) ((desttype)(expr))
+#define cast_if_type(desttype, expr, oktype) ((desttype)(expr))
 #endif
 #endif
 
 
 /**
 /**