Kaydet (Commit) 0b25dc82 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Blind fix

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

Change-Id: I8d03b2fc785595267c855c8ac9953d35782c7718
üst 34527cec
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment