fix potential type mismatch
This commit is contained in:
parent
eee1a46139
commit
310dc968ea
1 changed files with 2 additions and 1 deletions
|
@ -141,7 +141,8 @@ std::tuple<char,bool> autodect_newline(T & stream, std::size_t file_length)
|
||||||
// autodetect newlines
|
// autodetect newlines
|
||||||
char newline = '\n';
|
char newline = '\n';
|
||||||
bool has_newline = false;
|
bool has_newline = false;
|
||||||
std::size_t size = std::min(file_length, 4000UL);
|
static std::size_t const max_size = 4000;
|
||||||
|
std::size_t size = std::min(file_length, max_size);
|
||||||
for (std::size_t lidx = 0; lidx < size; ++lidx)
|
for (std::size_t lidx = 0; lidx < size; ++lidx)
|
||||||
{
|
{
|
||||||
char c = static_cast<char>(stream.get());
|
char c = static_cast<char>(stream.get());
|
||||||
|
|
Loading…
Add table
Reference in a new issue