Clarify a comment in gen/case.c - libgrapheme - unicode string library
(HTM) git clone git://git.suckless.org/libgrapheme
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit bc1dc28c09ce845291c51041b45594fef78e4eb4
(DIR) parent 5dec22a7143e1105f25c7a7626fa166d882367d0
(HTM) Author: Laslo Hunhold <dev@frign.de>
Date: Sat, 24 Sep 2022 10:37:21 +0200
Clarify a comment in gen/case.c
Signed-off-by: Laslo Hunhold <dev@frign.de>
Diffstat:
M gen/case.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/gen/case.c b/gen/case.c
@@ -166,7 +166,8 @@ specialcasing_callback(const char *file, char **field, size_t nfields,
/*
* overwrite value in "single mapping" property table by the
- * special value 0x110000 + (offset in special case array)
+ * special value 0x110000 + (offset in special case array),
+ * even if the special case has length 1
*/
prop_upper[cp].property = (int_least64_t)(UINT32_C(0x110000) + (sclen - 1));
prop_lower[cp].property = (int_least64_t)(UINT32_C(0x110000) + (sclen - 1));