[libc-commits] [libc] [llvm] [libc][NFC] Use user defined literals to build 128 and 256 bit constants. (PR #81746)
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Wed Feb 14 09:52:43 PST 2024
================
@@ -76,7 +76,7 @@ template <typename T, int base> struct DigitBuffer {
// Returns the digit for a particular character.
// Returns 255 if the character is invalid.
LIBC_INLINE static constexpr uint8_t get_digit_value(const char c) {
- const auto to_lower = [](char c) { return c | 32; };
+ const auto to_lower = [](char c) -> uint8_t { return c | 32; };
const auto is_digit = [](char c) { return c >= '0' && c <= '9'; };
const auto is_alpha = [](char c) {
return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z');
----------------
gchatelet wrote:
Yes just noticed, I'll revert, I don't have time to fix it now.
https://github.com/llvm/llvm-project/pull/81746
More information about the libc-commits
mailing list