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