summaryrefslogtreecommitdiff
path: root/src/scan-gram.l
diff options
context:
space:
mode:
authorEdoardo Sanguineti <edoardo.sanguineti222@gmail.com>2022-11-04 11:50:32 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-11-04 11:53:52 -0700
commit97852f39f42a28abfcaf1c46b1f06920eae151c9 (patch)
tree984ad8dfe7c82cd76bcc8d44305a035e36963768 /src/scan-gram.l
parent25b3d0e1a3f97a33615099e4b211f3953990c203 (diff)
downloadbison-master.tar.gz
maint: remove unnecessary casts before using gnulib functionsHEADmaster
* src/parse-gram.y, src/scan-gram.l: Do not cast c-ctype.h function args to unsigned char unnecessarily. * src/parse-gram.c: Regenerate. Copyright-paperwork-exempt: yes
Diffstat (limited to 'src/scan-gram.l')
-rw-r--r--src/scan-gram.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scan-gram.l b/src/scan-gram.l
index 3926a4aa..64c2fe8d 100644
--- a/src/scan-gram.l
+++ b/src/scan-gram.l
@@ -683,7 +683,7 @@ eqopt ({sp}=)?
\\(.|{eol}) {
char const *p = yytext + 1;
/* Quote only if escaping won't make the character visible. */
- if (c_isspace ((unsigned char) *p) && c_isprint ((unsigned char) *p))
+ if (c_isspace (*p) && c_isprint (*p))
p = quote (p);
else
p = quotearg_style_mem (escape_quoting_style, p, 1);