]> git.ozlabs.org Git - ccan/blobdiff - ccan/str/test/compile_fail-isupper.c
str: fix tests on unsigned chars, and !HAVE_ISBLANK.
[ccan] / ccan / str / test / compile_fail-isupper.c
index f23dd659c70ac9fee3b3d2846f2a1891a2c08ea7..4cf9fd35785c37e40e1ea16529845886896381f8 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 isupper(c);