projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c10e32
)
Attempt to fix windows-32 build.
author
Carl Hetherington
<cth@carlh.net>
Fri, 9 May 2025 00:34:35 +0000
(
02:34
+0200)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 9 May 2025 00:34:35 +0000
(
02:34
+0200)
src/lib/scp_uploader.cc
patch
|
blob
|
history
diff --git
a/src/lib/scp_uploader.cc
b/src/lib/scp_uploader.cc
index faf482a4353936ad5438ebe98ad256e5a06f6ece..193894293454ca39d92ffbf35c6c49cf14830e32 100644
(file)
--- 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);