From fef7640faf475afc33f3a62a944cfce547447a6c Mon Sep 17 00:00:00 2001 From: yhoogstrate Date: Wed, 5 Jan 2022 16:25:55 +0100 Subject: [PATCH] remove warnings --- dependencies/zstd-seekable-adapted/zstdseek_decompress.cpp | 2 +- src/fastafs.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dependencies/zstd-seekable-adapted/zstdseek_decompress.cpp b/dependencies/zstd-seekable-adapted/zstdseek_decompress.cpp index fa6df031..96402eea 100644 --- a/dependencies/zstd-seekable-adapted/zstdseek_decompress.cpp +++ b/dependencies/zstd-seekable-adapted/zstdseek_decompress.cpp @@ -385,7 +385,7 @@ size_t ZSTD_seekable_getFileDecompressedSize(ZSTD_seekable* zs) { size_t written = 0; - for(size_t i = 0 ; i < zs->seekTable.tableLen ; i++) { + for(unsigned int i = 0 ; i < zs->seekTable.tableLen ; i++) { written += ZSTD_seekable_getFrameDecompressedSize(zs, i); } diff --git a/src/fastafs.cpp b/src/fastafs.cpp index b256cf80..e45ebb47 100644 --- a/src/fastafs.cpp +++ b/src/fastafs.cpp @@ -1503,7 +1503,7 @@ uint32_t fastafs::view_faidx_chunk(uint32_t padding, char *buffer, size_t buffer size_t to_copy = std::min(buffer_size, contents.size() - file_offset ); - return contents.copy(buffer, to_copy, file_offset ); + return (uint32_t) contents.copy(buffer, to_copy, file_offset ); }