diff options
| author | Martin Ridgers <[email protected]> | 2021-09-29 15:43:08 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-29 16:57:32 +0200 |
| commit | 1ff544358cca129bee1b9f60d1cc396751c2e1f6 (patch) | |
| tree | aaec1585c2042059ef37ff725a05b088b873cceb /zencore/filesystem.cpp | |
| parent | Prevent mesh tests to crash by moving behind define. (diff) | |
| download | zen-1ff544358cca129bee1b9f60d1cc396751c2e1f6.tar.xz zen-1ff544358cca129bee1b9f60d1cc396751c2e1f6.zip | |
Fixed signed/unsigned mismatched warnings from GCC
Diffstat (limited to 'zencore/filesystem.cpp')
| -rw-r--r-- | zencore/filesystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp index e42f94550..b5733c4ed 100644 --- a/zencore/filesystem.cpp +++ b/zencore/filesystem.cpp @@ -498,7 +498,7 @@ WriteFile(std::filesystem::path Path, const IoBuffer* const* Data, size_t Buffer ThrowSystemException(hRes, "File write failed for '{}'"_format(Path).c_str()); } #else - if (write(Fd, DataPtr, WriteSize) != WriteSize) + if (write(Fd, DataPtr, WriteSize) != int64_t(WriteSize)) { ThrowLastError("File write failed for '{}'"_format(Path)); } |