X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fstr%2Ftest%2Fcompile_fail-iscntrl.c;h=bc74146542f1b36ecefe1fb394bfb84254d4b571;hb=00e61068e33e7883a2657744514452a32660d461;hp=5ae783b126a4b6d989bee3a16290203dc7f59f08;hpb=ecea073699c60fd5aab9e3955f59a7042d637b68;p=ccan diff --git a/ccan/str/test/compile_fail-iscntrl.c b/ccan/str/test/compile_fail-iscntrl.c index 5ae783b1..bc741465 100644 --- a/ccan/str/test/compile_fail-iscntrl.c +++ b/ccan/str/test/compile_fail-iscntrl.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 iscntrl(c);