summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrlar <rlar>2016-02-28 10:41:23 +0100
committerWill Estes <westes575@gmail.com>2016-03-01 06:07:36 -0500
commit265e8e5c90e54f803b94c98a9cfbb1a37804e0b5 (patch)
treef8610ddaff2c72fcf01dddd5441da49f8b0f884c /src
parentf951c3f8cc581771013e657fd57bdce4d73aad1a (diff)
avoid warning, POSIX says yyless() has an `int' argument
Diffstat (limited to 'src')
-rw-r--r--src/scan.l3
1 files changed, 1 insertions, 2 deletions
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 {