Blind fix

...in --enable-online-update=mar code, after
7d8e94444d "convert a<b?a:b to std::min(a,b)"

Change-Id: I8d03b2fc785595267c855c8ac9953d35782c7718
This commit is contained in:
Stephan Bergmann
2018-01-17 09:01:18 +01:00
parent 34527cec54
commit 0b25dc8231

View File

@@ -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)
{