]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed casting warning from uint64_t to size_t in adler32_copy benchmarks
authorNathan Moinvaziri <nathan@nathanm.com>
Sun, 11 Sep 2022 19:36:59 +0000 (15:36 -0400)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 26 Sep 2022 18:09:36 +0000 (20:09 +0200)
test/benchmarks/benchmark_adler32_copy.cc

index 2cc18015ce9a2e74c6f33bebbc94941d1223d37d..71ac72f295107d5e99f3049785334b8b4edea4c4 100644 (file)
@@ -77,7 +77,7 @@ public:
         } \
         Bench(state, [](uint32_t init_sum, unsigned char *dst, \
                         const uint8_t *buf, uint64_t len) -> uint32_t { \
-            memcpy(dst, buf, len); \
+            memcpy(dst, buf, (size_t)len); \
             return fptr(init_sum, buf, len); \
         }); \
     } \