]> git.ozlabs.org Git - ccan/blobdiff - ccan/str/test/compile_fail-islower.c
str: fix tests on unsigned chars, and !HAVE_ISBLANK.
[ccan] / ccan / str / test / compile_fail-islower.c
index 9dec95f69a0881cbe530a62c4e2abac849fda6d5..ca3f9907e52087eefb75d6f40831f11c50b12e8e 100644 (file)
@@ -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);