mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Fixed compiler warning.
This commit is contained in:
parent
42c9d06221
commit
59153dfdbd
@ -17,7 +17,7 @@ bool read_file(const char* path, vector<char>& buff)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
buff.resize(ifs.seekg(0, ios::end).tellg());
|
buff.resize(static_cast<unsigned int>(ifs.seekg(0, ios::end).tellg()));
|
||||||
ifs.seekg(0, ios::beg).read(&buff[0], static_cast<streamsize>(buff.size()));
|
ifs.seekg(0, ios::beg).read(&buff[0], static_cast<streamsize>(buff.size()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user