diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-01-19 16:43:34 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-01-19 16:43:34 +0000 |
commit | 9d0dc4bc5a6c35fe3a8913865985cb11f5d5714a (patch) | |
tree | b1c9d0103ef6013efb461c0906cccaeb99484f70 /cpp/src/IceGrid/FileCache.cpp | |
parent | Removed AIX support (diff) | |
download | ice-9d0dc4bc5a6c35fe3a8913865985cb11f5d5714a.tar.bz2 ice-9d0dc4bc5a6c35fe3a8913865985cb11f5d5714a.tar.xz ice-9d0dc4bc5a6c35fe3a8913865985cb11f5d5714a.zip |
Fixed warnings
Diffstat (limited to 'cpp/src/IceGrid/FileCache.cpp')
-rw-r--r-- | cpp/src/IceGrid/FileCache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/FileCache.cpp b/cpp/src/IceGrid/FileCache.cpp index b555281482f..8f83b830400 100644 --- a/cpp/src/IceGrid/FileCache.cpp +++ b/cpp/src/IceGrid/FileCache.cpp @@ -47,7 +47,7 @@ FileCache::getOffsetFromEnd(const string& file, int originalCount) // read. // is.clear(); - if(lastBlockOffset - blockSize > 0) + if(lastBlockOffset - blockSize > streamoff(0)) { is.seekg(lastBlockOffset - blockSize); getline(is, line); // Ignore the first line as it's most likely not complete. @@ -66,7 +66,7 @@ FileCache::getOffsetFromEnd(const string& file, int originalCount) // deque<string> lines; int count = originalCount - totalCount; // Number of lines left to find. - while(is.good() && is.tellg() < lastBlockOffset) + while(is.good() && is.tellg() < streamoff(lastBlockOffset)) { getline(is, line); @@ -81,7 +81,7 @@ FileCache::getOffsetFromEnd(const string& file, int originalCount) } } - if(lastBlockOffset - blockSize < 0) + if(lastBlockOffset - blockSize < streamoff(0)) { break; // We're done if the block started at the begining of the file. } |