[PATCH] Sign warning
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index 9810e419852330f7353240884c62b0f9107ddd2a..bfdf390bcf5fac48a791be18898a3dbfe968eeef 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -21,7 +21,7 @@ static char *num2str(unsigned long num, int maxlen, int base)
         * could be passed in for 10^3 base, but every caller expects
         * 2^10 base right now.
         */
-       const int thousand = 1024;
+       const unsigned int thousand = 1024;
        char postfix[] = { 'K', 'M', 'G', 'P' };
        char *buf;
        int i;