diff options
author | Jose <jose@zeroc.com> | 2019-06-21 22:22:14 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-06-21 22:22:14 +0200 |
commit | d1b7c66fab777fe72e5cf77fd284218e2080b017 (patch) | |
tree | b48615b2d9d2f59195c8a560e07585b9cbb77cb5 /cpp/src/icegriddb/IceGridDB.cpp | |
parent | Add ice_isFixed - Close #356 (diff) | |
download | ice-d1b7c66fab777fe72e5cf77fd284218e2080b017.tar.bz2 ice-d1b7c66fab777fe72e5cf77fd284218e2080b017.tar.xz ice-d1b7c66fab777fe72e5cf77fd284218e2080b017.zip |
Enable -Wconversion with clang - Close #363
Diffstat (limited to 'cpp/src/icegriddb/IceGridDB.cpp')
-rw-r--r-- | cpp/src/icegriddb/IceGridDB.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/icegriddb/IceGridDB.cpp b/cpp/src/icegriddb/IceGridDB.cpp index cf6d2c83163..f403d3e94bf 100644 --- a/cpp/src/icegriddb/IceGridDB.cpp +++ b/cpp/src/icegriddb/IceGridDB.cpp @@ -551,10 +551,11 @@ run(const Ice::StringSeq& args) ofstream fs(IceUtilInternal::streamFilename(dbFile).c_str(), ios::binary); if(fs.fail()) { - consoleErr << args[0] << ": could not open output file: " << IceUtilInternal::errorToString(errno) << endl; + consoleErr << args[0] << ": could not open output file: " << IceUtilInternal::errorToString(errno) + << endl; return 1; } - fs.write(reinterpret_cast<const char*>(stream.b.begin()), stream.b.size()); + fs.write(reinterpret_cast<const char*>(stream.b.begin()), static_cast<streamsize>(stream.b.size())); fs.close(); } } |