This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch branch-1.12
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/branch-1.12 by this push:
new fc53a26c15 [C++] Fix compilation warning on 32-bit architectures with
zstd (#3606)
fc53a26c15 is described below
commit fc53a26c15228cb1033e2be02963119fc3a922b8
Author: Stephan Lachnit <[email protected]>
AuthorDate: Sun Dec 28 10:51:06 2025 +0100
[C++] Fix compilation warning on 32-bit architectures with zstd (#3606)
---
lang/c++/impl/DataFile.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lang/c++/impl/DataFile.cc b/lang/c++/impl/DataFile.cc
index 5bf27c1ab7..c9b9c8420e 100644
--- a/lang/c++/impl/DataFile.cc
+++ b/lang/c++/impl/DataFile.cc
@@ -489,7 +489,7 @@ void DataFileReaderBase::readDataBlock() {
}
// Get the decompressed size
- size_t decompressed_size = ZSTD_getFrameContentSize(
+ unsigned long long decompressed_size = ZSTD_getFrameContentSize(
reinterpret_cast<const char *>(compressed_.data()),
compressed_.size());
if (decompressed_size == ZSTD_CONTENTSIZE_ERROR) {
throw Exception("ZSTD: Not a valid compressed frame");