Merge pull request #55 from swordflychen/master

fix `std:max` type mismatch
This commit is contained in:
Emiel Bruijntjes 2016-02-22 16:38:41 +01:00
commit a5e86d4b95
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ public:
if (result > 0) _size += result;
// if buffer is not full
if (result < available) buffer.resize(std::max(0L, result));
if (result < available) buffer.resize(std::max(0L, (long int)result));
// done
return result;