summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrlar <rlar>2016-02-28 10:46:37 +0100
committerWill Estes <westes575@gmail.com>2016-02-28 15:21:12 -0500
commitfd722d70303258e475b9a257a5dfc6cbec197440 (patch)
treee28627c2698c06676999402722bae23addda3b2a /src
parentbffbf1fa284b0315bb7f0e1fa30300c3af94f722 (diff)
fwrite wants a size_t, yyleng is int per posix
Diffstat (limited to 'src')
-rw-r--r--src/flex.skl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flex.skl b/src/flex.skl
index 1ccca3d..fc6915a 100644
--- a/src/flex.skl
+++ b/src/flex.skl
@@ -1110,7 +1110,7 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]],
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
+#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
%endif
%if-c++-only C++ definition
#define ECHO LexerOutput( yytext, yyleng )