Resolve some erros for MSVC

This commit is contained in:
2023-12-20 15:28:43 +01:00
parent c848ba75ff
commit bae3edd12a
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ std::streamsize StreamBuffer::xsgetn(char_type *s, std::streamsize n)
std::streamsize len = egptr() - gptr();
if(len > 0)
{
std::streamsize c = std::min(n, len);
std::streamsize c = n < len ? n : len;
std::memcpy(s, gptr(), c);
gbump(c);
ret = c;