From 674f0faa74dc483ed3a1bac1f1f3ec8d0eb7e792 Mon Sep 17 00:00:00 2001 From: jaime-m-p <> Date: Mon, 5 Aug 2024 21:43:32 +0200 Subject: [PATCH] Fix copy/paste wrong variable --- src/unicode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unicode.cpp b/src/unicode.cpp index 19f55145e..ae36d2b43 100644 --- a/src/unicode.cpp +++ b/src/unicode.cpp @@ -602,11 +602,11 @@ codepoint_categ unicode_cpt_category(const uint32_t cp) { } for (auto p : unicode_map_lowercase) { - cpt_categs[cpt].set_flag(codepoint_categ::LOWERCASE); + cpt_categs[p.second].set_flag(codepoint_categ::LOWERCASE); } for (auto p : unicode_map_uppercase) { - cpt_categs[cpt].set_flag(codepoint_categ::UPPERCASE); + cpt_categs[p.second].set_flag(codepoint_categ::UPPERCASE); } //for (auto &range : unicode_ranges_nfd) { // start, last, nfd