From 5da1763e688f53791f6affecfa5c6aa08fa24709 Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Wed, 8 Jan 2025 13:08:00 +0200 Subject: [PATCH] Fix a fatal warning on MSVC --- src/decoders/oem/test/oem_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decoders/oem/test/oem_test.cpp b/src/decoders/oem/test/oem_test.cpp index e87416dd7..f9b3821ea 100644 --- a/src/decoders/oem/test/oem_test.cpp +++ b/src/decoders/oem/test/oem_test.cpp @@ -2992,7 +2992,7 @@ TEST_F(ParserTest, PARSE_FILE_WITH_FILTER) const std::size_t chunkSize = 32; std::vector buffer(chunkSize); while (clInputFileStream.read(buffer.data(), chunkSize) || clInputFileStream.gcount() > 0) { - std::size_t n = clInputFileStream.gcount(); + auto n = static_cast(clInputFileStream.gcount()); pclParser->Write(reinterpret_cast(buffer.data()), n); while (true) {