From d558c736fd691adea0a1d36b99d4a802240d3679 Mon Sep 17 00:00:00 2001 From: jaime-m-p <> Date: Mon, 5 Aug 2024 21:24:13 +0200 Subject: [PATCH] Binary constants are a C++14 feature --- src/unicode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unicode.cpp b/src/unicode.cpp index a5a377b39..19f55145e 100644 --- a/src/unicode.cpp +++ b/src/unicode.cpp @@ -703,9 +703,9 @@ std::vector unicode_regex_split(const std::string & text, const std // \p{Ll} --> \p{Ll} to \p{Ll} // has subcategory ? yes // \p{Lu} --> \p{Lu} to \p{Lu} // has subcategory ? yes // \p{L} --> \p{Ll} to \p{Lu} // has subcategory ? no - GGML_ASSERT((COLLAPSE_CPT_RANGE_FIRST & 0b111) == 0); + GGML_ASSERT((COLLAPSE_CPT_RANGE_FIRST & 0x7) == 0); const uint32_t collapsed = category_to_collapsed_cpt(categ); - const uint32_t range = (collapsed & 0b111) ? 0 : 0b111; // has subcategory ? + const uint32_t range = (collapsed & 0x7) ? 0 : 0x7; // has subcategory ? return std::pair(collapsed, collapsed + range); };