X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcheck_type%2Fcheck_type.h;h=884056719cc718eb075acd1a8848c8aef8640265;hp=e05236f8f4feb4777e1b01fe3a64c7dc0cc7531d;hb=da72623aec30213a593bd23dca80c89416598f75;hpb=650c775ff00cccd03fc84e7789a03c51d9839004;ds=sidebyside diff --git a/ccan/check_type/check_type.h b/ccan/check_type/check_type.h index e05236f8..88405671 100644 --- a/ccan/check_type/check_type.h +++ b/ccan/check_type/check_type.h @@ -31,7 +31,7 @@ * arguments are of identical types. No type promotion of the expressions is * done: an unsigned int is not the same as an int! * - * check_types_match() always evaluates to 1. + * check_types_match() always evaluates to 0. * * If your compiler does not support typeof, then the best we can do is fail * to compile if the sizes of the types are unequal (a less complete check). @@ -51,7 +51,7 @@ #define check_types_match(expr1, expr2) \ ((typeof(expr1) *)0 != (typeof(expr2) *)0) #else -#include "build_assert/build_assert.h" +#include /* Without typeof, we can only test the sizes. */ #define check_type(expr, type) \ EXPR_BUILD_ASSERT(sizeof(expr) == sizeof(type))