X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plocate.cpp;h=eb00adac8cced544b8ef0db9524f85cfcd146722;hb=ebd6662ce95ba329f339b6fa6df1490d9f7413a9;hp=63a927febe8091a5dbd7220ad6f0ebba925742ed;hpb=0374a79e4789c011bf7cf5e87ddc69eb368c6c2d;p=plocate diff --git a/plocate.cpp b/plocate.cpp index 63a927f..eb00ada 100644 --- a/plocate.cpp +++ b/plocate.cpp @@ -58,7 +58,7 @@ void apply_limit() dprintf("Done in %.1f ms, found %" PRId64 " matches.\n", 1e3 * duration(steady_clock::now() - start).count(), limit_matches); if (only_count) { - printf("%ld\n", limit_matches); + printf("%" PRId64 "\n", limit_matches); } exit(0); } @@ -305,7 +305,7 @@ size_t Corpus::get_num_filename_blocks() const void scan_file_block(const vector &needles, string_view compressed, AccessRXCache *access_rx_cache, uint64_t seq, Serializer *serializer, - size_t *matched) + uint64_t *matched) { unsigned long long uncompressed_len = ZSTD_getFrameContentSize(compressed.data(), compressed.size()); if (uncompressed_len == ZSTD_CONTENTSIZE_UNKNOWN || uncompressed_len == ZSTD_CONTENTSIZE_ERROR) {