X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstr%2Ftest%2Fcompile_fail-iscntrl.c;h=bc74146542f1b36ecefe1fb394bfb84254d4b571;hp=5ae783b126a4b6d989bee3a16290203dc7f59f08;hb=c438ec17d7b2efe76e56e5fc5ab88bd4a02735e8;hpb=ecea073699c60fd5aab9e3955f59a7042d637b68 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);