fix vs warnings

This commit is contained in:
Tianqi Chen
2015-03-09 22:37:08 -07:00
parent 5c389ed89a
commit d5303af068
2 changed files with 10 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ class FileStream : public ISeekStream {
return std::ftell(fp);
}
virtual bool AtEnd(void) const {
return std::feof(fp);
return std::feof(fp) != 0;
}
inline void Close(void) {
if (fp != NULL){