X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcheck_type%2Fcheck_type.h;h=b199347116b07dbc2f2e5e843345334195559ba1;hb=07a9a950734c34be120491861647ace5a37d4c89;hp=0cf52543e38e6e2d6ef208873fe975839041ce44;hpb=3f4e83d8ac847d6bf0c20e88cdbca535e842a97b;p=ccan diff --git a/ccan/check_type/check_type.h b/ccan/check_type/check_type.h index 0cf52543..b1993471 100644 --- a/ccan/check_type/check_type.h +++ b/ccan/check_type/check_type.h @@ -11,7 +11,7 @@ * argument is of the expected type. No type promotion of the expression is * done: an unsigned int is not the same as an int! * - * check_type() always evaluates to 1. + * check_type() 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). @@ -38,7 +38,7 @@ * * Example: * // Do subtraction to get to enclosing type, but make sure that - * // pointer is of correct type for that member. + * // pointer is of correct type for that member. * #define container_of(mbr_ptr, encl_type, mbr) \ * (check_types_match((mbr_ptr), &((encl_type *)0)->mbr), \ * ((encl_type *) \