aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index 7a90794..6b73ad3 100644
--- a/gcc/cppexp.c
+++ b/gcc/cppexp.c
@@ -357,11 +357,9 @@ cpp_reader *pfile;
else
max_chars = MAX_LONG_TYPE_SIZE / width;
- while (1)
+ ++ptr;
+ while (ptr < tok_end && ((c = *ptr++) != '\''))
{
- if (ptr >= CPP_PWRITTEN (pfile) || (c = *ptr++) == '\'')
- break;
-
if (c == '\\')
{
c = cpp_parse_escape (pfile, &ptr);