summaryrefslogtreecommitdiff
path: root/src/scan-gram.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/scan-gram.l')
-rw-r--r--src/scan-gram.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scan-gram.l b/src/scan-gram.l
index 5c0418c6..a6bd5e2f 100644
--- a/src/scan-gram.l
+++ b/src/scan-gram.l
@@ -500,9 +500,9 @@ splice (\\[ \f\t\v]*\n)*
{
/* FIXME: Eventually, make these errors. */
size_t length = strlen (last_string);
- if (strlen (last_string) < 3)
+ if (length < 3)
warn_at (*loc, _("empty character literal"));
- else if (strlen (last_string) > 3)
+ else if (length > 3)
warn_at (*loc, _("extra characters in character literal"));
}
if (yytext[0] == '\n')