]> git.tuebingen.mpg.de Git - osl.git/blobdiff - util.c
build: Fix manual setting of CC.
[osl.git] / util.c
diff --git a/util.c b/util.c
index 32f3402aae7cc95a62c48f3b15965a3de75e48f9..34667e3fc7a6ace461652ec90c285b60bdb47307 100644 (file)
--- a/util.c
+++ b/util.c
@@ -229,7 +229,7 @@ __must_check __printf_1_2 __malloc char *make_message(const char *fmt, ...)
                n = vsnprintf(p, size, fmt, ap);
                va_end(ap);
                /* If that worked, return the string. */
                n = vsnprintf(p, size, fmt, ap);
                va_end(ap);
                /* If that worked, return the string. */
-               if (n > -1 && n < size)
+               if (n > -1 && (unsigned)n < size)
                        break;
                /* Else try again with more space. */
                if (n > -1) /* glibc 2.1 */
                        break;
                /* Else try again with more space. */
                if (n > -1) /* glibc 2.1 */