ref: 3f38cfc966f9dc056be291b58d63819215e8fac2
parent: 1fc4bd2a74431fc24c7c4dad51c67205044348aa
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed May 11 08:20:47 EDT 2016
[cc1] Increase the portability of digits() This is a bit (totally) pedantic, but we were using the strchr approach in readint, so it was a bit stupid don't being pedantic in digits() to.
--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -354,7 +354,7 @@
for (p = input->p; c = *p; ++p) {
switch (base) {
case 8:
- if (c > '7' || c < '0')
+ if (!strchr("01234567", c))
goto end;
break;
case 10: