]> granicus.if.org Git - flex/commitdiff
avoid warning, POSIX says yyless() has an `int' argument
authorrlar <rlar>
Sun, 28 Feb 2016 09:41:23 +0000 (10:41 +0100)
committerWill Estes <westes575@gmail.com>
Tue, 1 Mar 2016 11:07:36 +0000 (06:07 -0500)
src/scan.l

index 59c2c19d39736c2d24249c5c432dc456c6b865a9..cfc832d01852bec960eeb163b727bfa3ce0adda6 100644 (file)
@@ -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 {