summaryrefslogtreecommitdiff
path: root/cpp/src/icegriddb/IceGridDB.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/icegriddb/IceGridDB.cpp')
-rw-r--r--cpp/src/icegriddb/IceGridDB.cpp5
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();
}
}