Message ID | 20240525171601.9399-1-peter0x44@disroot.org |
---|---|
State | New |
Headers | show |
Series | libcpp: Correct typo 'r' -> '\r' | expand |
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 --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;
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(-)