X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fstr%2Ftest%2Fcompile_fail-islower.c;fp=ccan%2Fstr%2Ftest%2Fcompile_fail-islower.c;h=ca3f9907e52087eefb75d6f40831f11c50b12e8e;hb=00e61068e33e7883a2657744514452a32660d461;hp=9dec95f69a0881cbe530a62c4e2abac849fda6d5;hpb=5c922794aa81cb2a62a034552f6478074b4dda14;p=ccan 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);