diff --git a/lint/peglint.cc b/lint/peglint.cc index 586c175..371aea7 100644 --- a/lint/peglint.cc +++ b/lint/peglint.cc @@ -17,7 +17,7 @@ bool read_file(const char* path, vector& buff) return false; } - buff.resize(ifs.seekg(0, ios::end).tellg()); + buff.resize(static_cast(ifs.seekg(0, ios::end).tellg())); ifs.seekg(0, ios::beg).read(&buff[0], static_cast(buff.size())); return true; }