back to normal print specifiers

disable warnings for format specifiers on mingw since the
compiler emits bogus warnings
This commit is contained in:
Andrew Kelley
2016-02-16 20:34:45 -07:00
parent bb806f941c
commit 06398a22d0
4 changed files with 13 additions and 9 deletions

View File

@@ -265,8 +265,7 @@ Buf *bignum_to_buf(BigNum *bn) {
return buf_sprintf("%f", bn->data.x_float);
} else {
const char *neg = bn->is_negative ? "-" : "";
uintmax_t value = bn->data.x_uint;
return buf_sprintf("%s%" PRIuMAX, neg, value);
return buf_sprintf("%s%llu", neg, bn->data.x_uint);
}
}