summaryrefslogtreecommitdiff
path: root/src/parse-gram.y
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/parse-gram.y
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/parse-gram.y')
-rw-r--r--src/parse-gram.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse-gram.y b/src/parse-gram.y
index 3006f54c..7e2299f1 100644
--- a/src/parse-gram.y
+++ b/src/parse-gram.y
@@ -928,11 +928,11 @@ add_param (param_type type, char *decl, location loc)
/* Strip the surrounding '{' and '}', and any blanks just inside
the braces. */
--p;
- while (c_isspace ((unsigned char) *p))
+ while (c_isspace (*p))
--p;
p[1] = '\0';
++decl;
- while (c_isspace ((unsigned char) *decl))
+ while (c_isspace (*decl))
++decl;
}