diff options
Diffstat (limited to 'cpp/src/IceStorm/Parser.cpp')
-rw-r--r-- | cpp/src/IceStorm/Parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceStorm/Parser.cpp b/cpp/src/IceStorm/Parser.cpp index 974ca9f8d85..bd238b8846d 100644 --- a/cpp/src/IceStorm/Parser.cpp +++ b/cpp/src/IceStorm/Parser.cpp @@ -461,7 +461,7 @@ Parser::getInput(char* buf, int& result, int maxSize) } } - result = line.length(); + result = (int) line.length(); if(result > maxSize) { error("input line too long"); @@ -477,7 +477,7 @@ 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; |