From: rlar Date: Sun, 28 Feb 2016 09:41:23 +0000 (+0100) Subject: avoid warning, POSIX says yyless() has an `int' argument X-Git-Tag: v2.6.1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=265e8e5c90e54f803b94c98a9cfbb1a37804e0b5;p=flex avoid warning, POSIX says yyless() has an `int' argument --- diff --git a/src/scan.l b/src/scan.l index 59c2c19..cfc832d 100644 --- a/src/scan.l +++ b/src/scan.l @@ -528,8 +528,7 @@ M4QEND "]]" if (sf_skip_ws()){ /* We're in the middle of a (?x: ) pattern. */ /* Push back everything starting at the "|" */ - size_t amt; - amt = strchr (yytext, '|') - yytext; + int amt = (int) (strchr (yytext, '|') - yytext); yyless(amt); } else {