diff options
author | Anton Adamansky <adamansky@gmail.com> | 2015-03-27 14:50:15 +0600 |
---|---|---|
committer | Anton Adamansky <adamansky@gmail.com> | 2015-03-27 14:50:15 +0600 |
commit | d9a3adb28a0b6d8d75f3b97c1896250d904f1c6c (patch) | |
tree | 47377679a7e0419e5e754f078f2ceeea6d773306 /src/bson/bson.c | |
parent | cedfb95087c98612f52d841cb8ce9fd4c3d194c4 (diff) | |
download | ejdb-d9a3adb28a0b6d8d75f3b97c1896250d904f1c6c.tar.gz ejdb-d9a3adb28a0b6d8d75f3b97c1896250d904f1c6c.tar.bz2 ejdb-d9a3adb28a0b6d8d75f3b97c1896250d904f1c6c.zip |
Build fixes #122 #121 (OSX)
Diffstat (limited to 'src/bson/bson.c')
-rw-r--r-- | src/bson/bson.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bson/bson.c b/src/bson/bson.c index 1152481..c2f92c4 100644 --- a/src/bson/bson.c +++ b/src/bson/bson.c @@ -298,7 +298,7 @@ void bson_print_raw(const char *data, int depth) { fprintf(f, "%d", bson_iterator_int(&i)); break; case BSON_LONG: - fprintf(f, "%" PRIdMAX "", (uint64_t) bson_iterator_long(&i)); + fprintf(f, "%" PRId64 "", (uint64_t) bson_iterator_long(&i)); break; case BSON_TIMESTAMP: ts = bson_iterator_timestamp(&i); @@ -1286,7 +1286,7 @@ void bson_numstr(char *str, int64_t i) { if (i >= 0 && i < 1000) memcpy(str, bson_numstrs[i], 4); else - sprintf(str, "%" PRIdMAX "", (int64_t) i); + sprintf(str, "%" PRId64 "", (int64_t) i); } #pragma GCC diagnostic push @@ -1297,7 +1297,7 @@ int bson_numstrn(char *str, int maxbuf, int64_t i) { memcpy(str, bson_numstrs[i], 4); return strlen(bson_numstrs[i]); } else { - return snprintf(str, maxbuf, "%" PRIdMAX "", (int64_t) i); + return snprintf(str, maxbuf, "%" PRId64 "", (int64_t) i); } } #pragma GCC diagnostic pop |