summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/Parser.cpp')
-rw-r--r--cpp/src/IceGrid/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp
index a2eac633f04..e17cdc115c3 100644
--- a/cpp/src/IceGrid/Parser.cpp
+++ b/cpp/src/IceGrid/Parser.cpp
@@ -2188,7 +2188,7 @@ Parser::showWarranty()
}
void
-Parser::getInput(char* buf, size_t& result, size_t maxSize)
+Parser::getInput(char* buf, int& result, int maxSize)
{
if(!_commands.empty())
{
@@ -2198,7 +2198,7 @@ Parser::getInput(char* buf, size_t& result, size_t maxSize)
}
else
{
- result = min(maxSize, _commands.length());
+ result = min(maxSize, static_cast<int>(_commands.length()));
strncpy(buf, _commands.c_str(), result);
_commands.erase(0, result);
if(_commands.empty())