summaryrefslogtreecommitdiff
path: root/src/scan.l
diff options
context:
space:
mode:
authorrlar <rlar>2016-02-29 19:41:04 +0100
committerWill Estes <westes575@gmail.com>2016-02-29 20:16:03 -0500
commitd2c0374297b7dd687a89227f3e77ff3f244da94b (patch)
tree00f90edde731eb4fcee9212fee9220d848a739ba /src/scan.l
parent0f276adbb23542471bc30a2479e5fcdd5f475d72 (diff)
add (int) casts to some strlen() invocations to prevent warnings
Diffstat (limited to 'src/scan.l')
-rw-r--r--src/scan.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scan.l b/src/scan.l
index d2c21b3..59c2c19 100644
--- a/src/scan.l
+++ b/src/scan.l
@@ -272,8 +272,8 @@ M4QEND "]]"
buf_strnappend(&top_buf, yytext, yyleng);
}
- {M4QSTART} buf_strnappend(&top_buf, escaped_qstart, strlen(escaped_qstart));
- {M4QEND} buf_strnappend(&top_buf, escaped_qend, strlen(escaped_qend));
+ {M4QSTART} buf_strnappend(&top_buf, escaped_qstart, (int) strlen(escaped_qstart));
+ {M4QEND} buf_strnappend(&top_buf, escaped_qend, (int) strlen(escaped_qend));
[^{}\r\n] {
buf_strnappend(&top_buf, yytext, yyleng);