diff options
author | Anton Adamansky <adamansky@gmail.com> | 2015-04-15 14:59:24 +0600 |
---|---|---|
committer | Anton Adamansky <adamansky@gmail.com> | 2015-04-15 14:59:24 +0600 |
commit | bc5d7a156c8710f1cc3b6109604b45f38a24d246 (patch) | |
tree | 271fa5b8412d6d1c8a59a1c67dd46d191e15d5ba /src/bson/bson.c | |
parent | 1ecd99b6f307a28a1ba55eeaf6c065c64ce297a7 (diff) | |
download | ejdb-bc5d7a156c8710f1cc3b6109604b45f38a24d246.tar.gz ejdb-bc5d7a156c8710f1cc3b6109604b45f38a24d246.tar.bz2 ejdb-bc5d7a156c8710f1cc3b6109604b45f38a24d246.zip |
#127
Diffstat (limited to 'src/bson/bson.c')
-rw-r--r-- | src/bson/bson.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bson/bson.c b/src/bson/bson.c index 9fdf48a..771596f 100644 --- a/src/bson/bson.c +++ b/src/bson/bson.c @@ -269,7 +269,7 @@ void bson_print_raw(const char *data, int depth) { fprintf(f, "%s", bson_iterator_bool(&i) ? "true" : "false"); break; case BSON_DATE: - fprintf(f, "%ld", (long int) bson_iterator_date(&i)); + fprintf(f, "%" PRId64, bson_iterator_date(&i)); break; case BSON_BINDATA: fprintf(f, "BSON_BINDATA"); @@ -2509,7 +2509,7 @@ static int _bson2json(_BSON2JSONCTX *ctx, bson_iterator *it, bool array) { switch (bt) { case BSON_LONG: case BSON_INT: - tcxstrprintf(out, "%lld", (int64_t) bson_iterator_long_ext(it)); + tcxstrprintf(out, "%" PRId64, (int64_t) bson_iterator_long_ext(it)); break; case BSON_DOUBLE: { |