]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] libcpp: Correct typo 'r' -> '\r'
authorPeter Damianov <peter0x44@disroot.org>
Sun, 26 May 2024 14:06:14 +0000 (08:06 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 26 May 2024 14:06:14 +0000 (08:06 -0600)
libcpp/ChangeLog:
* lex.cc (do_peek_prev): Correct typo in argument to __builtin_expect()

Signed-off-by: Peter Damianov <peter0x44@disroot.org>
libcpp/lex.cc

index c9e44e6ccccf4fea9afedd5f7559881780c7c56e..de752bdc9c874901b594c59f2f8713114487f420 100644 (file)
@@ -5038,7 +5038,7 @@ do_peek_prev (const unsigned char *peek, const unsigned char *bound)
 
   unsigned char c = *--peek;
   if (__builtin_expect (c == '\n', false)
-      || __builtin_expect (c == 'r', false))
+      || __builtin_expect (c == '\r', false))
     {
       if (peek == bound)
        return peek;