X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcast%2Fcast.h;h=daebd8572391f07dfb17ae20c341c114c2507c3d;hp=dfb95b59772611bf53582b4b4ef132970104a829;hb=838db0d7ea37fc2a21d03d159b55b042f8144cb3;hpb=1313203b72656e8480805c7688c187d274fdceeb diff --git a/ccan/cast/cast.h b/ccan/cast/cast.h index dfb95b59..daebd857 100644 --- a/ccan/cast/cast.h +++ b/ccan/cast/cast.h @@ -122,11 +122,8 @@ #else #define cast_sign_compatible(type, expr) \ (sizeof(*(type)0) == 1 && sizeof(*(expr)) == 1) -#define cast_const_compat1(expr, type) \ - (sizeof(*(expr)) == sizeof(*(type)0)) -#define cast_const_compat2(expr, type) \ - (sizeof(**(expr)) == sizeof(**(type)0)) -#define cast_const_compat3(expr, type) \ - (sizeof(***(expr)) == sizeof(***(type)0)) +#define cast_const_compat1(expr, type) (1) +#define cast_const_compat2(expr, type) (1) +#define cast_const_compat3(expr, type) (1) #endif #endif /* CCAN_CAST_H */