Skip to content

Commit

Permalink
[#338] Fix FileUtil to build with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Mi-La committed Sep 17, 2021
1 parent d4181a8 commit 1f462a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/extensions/cpp/runtime/src/zserio/FileUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ BitBuffer readBufferFromFile(const std::string& fileName)
const std::streampos fileSize = is.tellg();
is.seekg(0);

if (fileSize == -1)
if (static_cast<int>(fileSize) == -1)
throw CppRuntimeException("readBufferFromFile: Failed to get file size of '" + fileName + "'!");

const size_t sizeLimit = std::numeric_limits<size_t>::max() / 8;
Expand Down

0 comments on commit 1f462a7

Please sign in to comment.