Commit 759502ed by Edward Thomson

odb_loose: explicitly cast to size_t

Quiet down a warning from MSVC about how we're potentially losing data.
This is safe since we've explicitly tested that it's positive and less
than SIZE_MAX.
parent 80c3867b
......@@ -183,7 +183,7 @@ static int parse_header(
return -1;
}
out->size = size;
out->size = (size_t)size;
if (GIT_ADD_SIZET_OVERFLOW(out_len, i, 1))
goto on_error;
......
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