X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstr%2Ftest%2Fcompile_fail-islower.c;h=ca3f9907e52087eefb75d6f40831f11c50b12e8e;hp=9dec95f69a0881cbe530a62c4e2abac849fda6d5;hb=cfc7d301da49dd2b2ce346b08bf5fbff3acfae67;hpb=ecea073699c60fd5aab9e3955f59a7042d637b68 diff --git a/ccan/str/test/compile_fail-islower.c b/ccan/str/test/compile_fail-islower.c index 9dec95f6..ca3f9907 100644 --- a/ccan/str/test/compile_fail-islower.c +++ b/ccan/str/test/compile_fail-islower.c @@ -15,8 +15,7 @@ int main(int argc, char *argv[]) #ifdef FAIL /* Fake fail on unsigned char platforms. */ - c = 255; - BUILD_ASSERT(c < 0); + BUILD_ASSERT((char)255 < 0); #endif return islower(c);