diff options
Diffstat (limited to 'cpp/src/IcePatch/ClientUtil.cpp')
-rw-r--r-- | cpp/src/IcePatch/ClientUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IcePatch/ClientUtil.cpp b/cpp/src/IcePatch/ClientUtil.cpp index b9f54b78b0b..e6fefd967da 100644 --- a/cpp/src/IcePatch/ClientUtil.cpp +++ b/cpp/src/IcePatch/ClientUtil.cpp @@ -83,7 +83,7 @@ IcePatch::getRegular(const RegularPrx& regular, ProgressCB& progressCB) posBZ2 += static_cast<Int>(bytesBZ2.size()); - fileBZ2.write(&bytesBZ2[0], bytesBZ2.size()); + fileBZ2.write(reinterpret_cast<const char*>(&bytesBZ2[0]), bytesBZ2.size()); if(!fileBZ2) { FileAccessException ex; @@ -169,7 +169,7 @@ IcePatch::getRegular(const RegularPrx& regular, ProgressCB& progressCB) progressCB.updateUncompress(totalBZ2, static_cast<Int>(pos)); - file.write(bytesBZ2, sz); + file.write(reinterpret_cast<const char*>(bytesBZ2), sz); if(!file) { FileAccessException ex; |