diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-05-09 02:34:35 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-05-09 02:34:35 +0200 |
| commit | f67eb55c3ed70b6922cac681b5102e1c9a2f3185 (patch) | |
| tree | 6ca2245ed188aa26a862e0a011cd02f0b48c4e4b | |
| parent | 8c10e327adca49bfa44044654b3a82838d1ba1b3 (diff) | |
Attempt to fix windows-32 build.
| -rw-r--r-- | src/lib/scp_uploader.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/scp_uploader.cc b/src/lib/scp_uploader.cc index faf482a43..193894293 100644 --- a/src/lib/scp_uploader.cc +++ b/src/lib/scp_uploader.cc @@ -125,7 +125,7 @@ LIBDCP_ENABLE_WARNINGS std::vector<char> buffer(64 * 1024); while (to_do > 0) { - int const t = min(to_do, buffer.size()); + int const t = min(to_do, static_cast<uintmax_t>(buffer.size())); size_t const read = f.read(buffer.data(), 1, t); if (read != size_t(t)) { throw ReadFileError(from); |
