building with mingw for windows

This commit is contained in:
Andrew Kelley
2017-05-23 00:26:12 -04:00
parent 1c8fee41c2
commit d8d45908fa
14 changed files with 126 additions and 44 deletions

View File

@@ -7,6 +7,7 @@
#include "bignum.hpp"
#include "buffer.hpp"
#include "os.hpp"
#include <assert.h>
#include <math.h>
@@ -350,7 +351,7 @@ Buf *bignum_to_buf(BigNum *bn) {
return buf_sprintf("%f", bn->data.x_float);
} else {
const char *neg = bn->is_negative ? "-" : "";
return buf_sprintf("%s%llu", neg, bn->data.x_uint);
return buf_sprintf("%s%" ZIG_PRI_llu "", neg, bn->data.x_uint);
}
}