- use std::vector for the MemoryArrayReader
This commit is contained in:
parent
2671394961
commit
def6bffdfc
6 changed files with 12 additions and 14 deletions
|
|
@ -983,7 +983,7 @@ void md5Update(FileReader& file, MD5Context& md5, unsigned len)
|
|||
|
||||
while (len > 0)
|
||||
{
|
||||
t = min<unsigned>(len, sizeof(readbuf));
|
||||
t = std::min<unsigned>(len, sizeof(readbuf));
|
||||
len -= t;
|
||||
t = (long)file.Read(readbuf, t);
|
||||
md5.Update(readbuf, t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue