From deda1e21772f8efcaf91baab3a9e896c471b0f32 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Mon, 21 Nov 2005 16:32:10 +0000 Subject: Windows x64 port --- cpp/src/IcePatch2/FileServerI.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/IcePatch2/FileServerI.cpp') diff --git a/cpp/src/IcePatch2/FileServerI.cpp b/cpp/src/IcePatch2/FileServerI.cpp index bb7ef6d203f..eac1790deba 100644 --- a/cpp/src/IcePatch2/FileServerI.cpp +++ b/cpp/src/IcePatch2/FileServerI.cpp @@ -112,11 +112,12 @@ IcePatch2::FileServerI::getFileCompressed(const string& pa, Int pos, Int num, co ByteSeq bytes(num); #ifdef _WIN32 - long r; + int r; + if((r = read(fd, &bytes[0], static_cast(num))) == -1) #else ssize_t r; -#endif if((r = read(fd, &bytes[0], static_cast(num))) == -1) +#endif { close(fd); -- cgit v1.2.3