From 078d0ff0de6ee889f8ba97d370f9de33d4ee5cbf Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Thu, 7 Dec 2006 12:31:05 +0000 Subject: Fix --- cpp/src/IceGrid/FileCache.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cpp/src/IceGrid/FileCache.cpp') diff --git a/cpp/src/IceGrid/FileCache.cpp b/cpp/src/IceGrid/FileCache.cpp index 4574af3731b..9dd062ce66f 100644 --- a/cpp/src/IceGrid/FileCache.cpp +++ b/cpp/src/IceGrid/FileCache.cpp @@ -45,7 +45,11 @@ FileCache::getOffsetFromEnd(const string& file, int originalCount) is.clear(); if(lastBlockOffset - blockSize > 0) { - is.seekg(lastBlockOffset - blockSize); +#ifdef _WIN32 + is.seekg(static_cast(lastBlockOffset - blockSize)); +#else + is.seekg(static_cast(lastBlockOffset - blockSize)); +#endif getline(is, line); // Ignore the first line as it's most likely not complete. } else -- cgit v1.2.3