summaryrefslogtreecommitdiff
path: root/lib/uninorm/composition.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2026-03-08 17:28:50 +0100
committerJörg Frings-Fürst <debian@jff.email>2026-03-08 17:28:50 +0100
commitff33e1d252f46bec1a33e28700da3282fc24047a (patch)
tree5c15bc695be820b393a8496c5807ecafbbdeb89b /lib/uninorm/composition.c
parentb2ac982cc8b5290699eb5f52fb043d3d15e2624b (diff)
parent5f59a34ab747dde8ede7357f3431bf06bd6002fe (diff)
Update upstream source from tag 'upstream/1.4.2'
Update to upstream version '1.4.2' with Debian dir 493e96bcd865e4f9990e20bee26408c96231d727
Diffstat (limited to 'lib/uninorm/composition.c')
-rw-r--r--lib/uninorm/composition.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/uninorm/composition.c b/lib/uninorm/composition.c
index d9a302be..c5d088bc 100644
--- a/lib/uninorm/composition.c
+++ b/lib/uninorm/composition.c
@@ -1,5 +1,5 @@
/* Canonical composition of Unicode characters.
- Copyright (C) 2002, 2006, 2009, 2011-2025 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2006, 2009, 2011-2026 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2009.
This file is free software: you can redistribute it and/or modify
@@ -69,8 +69,6 @@ uc_composition (ucs4_t uc1, ucs4_t uc2)
}
#else
char codes[6];
- const struct composition_rule *rule;
-
codes[0] = (uc1 >> 16) & 0xff;
codes[1] = (uc1 >> 8) & 0xff;
codes[2] = uc1 & 0xff;
@@ -78,7 +76,7 @@ uc_composition (ucs4_t uc1, ucs4_t uc2)
codes[4] = (uc2 >> 8) & 0xff;
codes[5] = uc2 & 0xff;
- rule = gl_uninorm_compose_lookup (codes, 6);
+ const struct composition_rule *rule = gl_uninorm_compose_lookup (codes, 6);
if (rule != NULL)
return rule->combined;
#endif