diff mbox series

libcpp: Correct typo 'r' -> '\r'

Message ID 20240525171601.9399-1-peter0x44@disroot.org
State New
Headers show
Series libcpp: Correct typo 'r' -> '\r' | expand

Commit Message

Peter Damianov May 25, 2024, 5:16 p.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jeff Law May 26, 2024, 2:07 p.m. UTC | #1
On 5/25/24 11:16 AM, Peter Damianov wrote:
> libcpp/ChangeLog:
> 	* lex.cc (do_peek_prev): Correct typo in argument to __builtin_expect()
THanks.  I've pushed this to the trunk.
jeff
diff mbox series

Patch

diff --git a/libcpp/lex.cc b/libcpp/lex.cc
index c9e44e6cccc..de752bdc9c8 100644
--- a/libcpp/lex.cc
+++ b/libcpp/lex.cc
@@ -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;