X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstr%2Ftest%2Fcompile_fail-isspace.c;h=bfee1f89f166614b603b9aec5c2315ad430a3af0;hp=c94c49e4893cc506c30df90bf4f217b7c593f50d;hb=00e61068e33e7883a2657744514452a32660d461;hpb=5c922794aa81cb2a62a034552f6478074b4dda14 diff --git a/ccan/str/test/compile_fail-isspace.c b/ccan/str/test/compile_fail-isspace.c index c94c49e4..bfee1f89 100644 --- a/ccan/str/test/compile_fail-isspace.c +++ b/ccan/str/test/compile_fail-isspace.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 isspace(c);