diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-03-07 14:15:10 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-03-07 14:15:10 +0000 |
commit | bcf0ceb584580049a250a850f8f4cc9ac2441608 (patch) | |
tree | ca9e1035ddfcb490a4a8e93acc193c66c7b172fb /cpp/src/IcePatch2/Util.cpp | |
parent | Added instructions to add . to LD_LIBRARY_PATH (diff) | |
download | ice-bcf0ceb584580049a250a850f8f4cc9ac2441608.tar.bz2 ice-bcf0ceb584580049a250a850f8f4cc9ac2441608.tar.xz ice-bcf0ceb584580049a250a850f8f4cc9ac2441608.zip |
Get rid of a bunch of 64bit warnings on Sun
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<Byte*>(&bytes[pos]), bytes.size() - pos); + BZ2_bzWrite(&bzError, bzFile, const_cast<Byte*>(&bytes[pos]), static_cast<int>(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<Int>(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<Int>(bufBZ2.st_size); } } |