X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcast%2Fcast.h;h=2fa96445b338f6b6b341b3f2aad122963e91054e;hb=9d9a9897b608af3a6acd623cc09557f9985b03e6;hp=f3bb445d0f7c145158c2c67bed05cdbb8059d61b;hpb=118ace351b789dfaca8866f84a8cd4b924941268;p=ccan diff --git a/ccan/cast/cast.h b/ccan/cast/cast.h index f3bb445d..2fa96445 100644 --- a/ccan/cast/cast.h +++ b/ccan/cast/cast.h @@ -14,7 +14,7 @@ */ #define cast_signed(type, expr) \ ((type)(expr) \ - + EXPR_BUILD_ASSERT(cast_sign_compatible(type, (expr)))) + + BUILD_ASSERT_OR_ZERO(cast_sign_compatible(type, (expr)))) /** * cast_const - remove a const qualifier from a pointer. @@ -39,7 +39,7 @@ */ #define cast_const(type, expr) \ ((type)(expr) \ - + EXPR_BUILD_ASSERT(cast_const_compat1((expr), type))) + + BUILD_ASSERT_OR_ZERO(cast_const_compat1((expr), type))) /** * cast_const2 - remove a const qualifier from a pointer to a pointer. @@ -51,7 +51,7 @@ */ #define cast_const2(type, expr) \ ((type)(expr) \ - + EXPR_BUILD_ASSERT(cast_const_compat2((expr), type))) + + BUILD_ASSERT_OR_ZERO(cast_const_compat2((expr), type))) /** * cast_const3 - remove a const from a pointer to a pointer to a pointer.. @@ -63,7 +63,7 @@ */ #define cast_const3(type, expr) \ ((type)(expr) \ - + EXPR_BUILD_ASSERT(cast_const_compat3((expr), type))) + + BUILD_ASSERT_OR_ZERO(cast_const_compat3((expr), type))) /**