From bcf0ceb584580049a250a850f8f4cc9ac2441608 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Mon, 7 Mar 2005 14:15:10 +0000 Subject: Get rid of a bunch of 64bit warnings on Sun --- cpp/src/IcePatch2/Util.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/IcePatch2/Util.cpp') diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp index 7cc6b1442e7..165bfb4f084 100644 --- a/cpp/src/IcePatch2/Util.cpp +++ b/cpp/src/IcePatch2/Util.cpp @@ -602,7 +602,7 @@ IcePatch2::compressBytesToFile(const string& pa, const ByteSeq& bytes, Int pos) throw ex; } - BZ2_bzWrite(&bzError, bzFile, const_cast(&bytes[pos]), bytes.size() - pos); + BZ2_bzWrite(&bzError, bzFile, const_cast(&bytes[pos]), static_cast(bytes.size() - pos)); if(bzError != BZ_OK) { string ex = "BZ2_bzWrite failed"; @@ -862,7 +862,7 @@ getFileInfoSeqInt(const string& basePath, const string& relPath, int compress, G // const string pathBZ2Temp = path + ".bz2temp"; - compressBytesToFile(pathBZ2Temp, bytes, relPath.size()); + compressBytesToFile(pathBZ2Temp, bytes, static_cast(relPath.size())); rename(pathBZ2Temp, pathBZ2); @@ -872,7 +872,7 @@ getFileInfoSeqInt(const string& basePath, const string& relPath, int compress, G } } - info.size = bufBZ2.st_size; + info.size = static_cast(bufBZ2.st_size); } } -- cgit v1.2.3