summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/library/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Freeze/library/Parser.cpp')
-rw-r--r--cpp/demo/Freeze/library/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/demo/Freeze/library/Parser.cpp b/cpp/demo/Freeze/library/Parser.cpp
index 5a8b84f291e..fd06a2a77fb 100644
--- a/cpp/demo/Freeze/library/Parser.cpp
+++ b/cpp/demo/Freeze/library/Parser.cpp
@@ -421,7 +421,7 @@ Parser::getInput(char* buf, int& result, int maxSize)
}
}
- result = line.length();
+ result = static_cast<int>(line.length());
if(result > maxSize)
{
error("input line too long");
@@ -437,7 +437,7 @@ Parser::getInput(char* buf, int& result, int maxSize)
}
else
{
- if(((result = fread(buf, 1, maxSize, yyin)) == 0) && ferror(yyin))
+ if(((result = static_cast<int>(fread(buf, 1, maxSize, yyin))) == 0) && ferror(yyin))
{
error("input in flex scanner failed");
buf[0] = EOF;