summaryrefslogtreecommitdiff
path: root/onlineupdate
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-17 09:01:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-17 09:01:18 +0100
commit0b25dc8231b51ef1fdb03274387851d1379a03b5 (patch)
treebc0c9c14fd85b7332edc89c1e602d6ee5b2c30c6 /onlineupdate
parent34527cec54ca634b831cfa5ac1098c4046818ac3 (diff)
Blind fix
...in --enable-online-update=mar code, after 7d8e94444d989d0ac4a4055b207726708e9ec0da "convert a<b?a:b to std::min(a,b)" Change-Id: I8d03b2fc785595267c855c8ac9953d35782c7718
Diffstat (limited to 'onlineupdate')
-rw-r--r--onlineupdate/source/update/updater/bspatch.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/onlineupdate/source/update/updater/bspatch.cxx b/onlineupdate/source/update/updater/bspatch.cxx
index b77d3ea1097b..219c4d74cafa 100644
--- a/onlineupdate/source/update/updater/bspatch.cxx
+++ b/onlineupdate/source/update/updater/bspatch.cxx
@@ -105,7 +105,7 @@ MBS_ApplyPatch(const MBSPatchHeader *header, FILE* patchFile,
unsigned char *wb = buf;
while (r)
{
- const size_t count = std::min(r, SSIZE_MAX);
+ const size_t count = std::min(r, size_t(SSIZE_MAX));
size_t c = fread(wb, 1, count, patchFile);
if (c != count)
{