aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-06-13 11:16:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-06-15 17:25:00 +0000
commit9dc4f48e7a00a2c59f955a4a6cab57ce68a01e4c (patch)
treef739d3ae9bc27f4a34c89fc01ab7df7b1ac7e0c1 /vt.c
parentvt: improve key calculation for compose sequences (diff)
vt: tag collision-count check with ‘unlikely’
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vt.c b/vt.c
index 54fd643c..91f00e6f 100644
--- a/vt.c
+++ b/vt.c
@@ -753,7 +753,7 @@ action_utf8_print(struct terminal *term, char32_t wc)
/* Look for existing combining chain */
while (true) {
- if (collision_count > 128) {
+ if (unlikely(collision_count > 128)) {
static bool have_warned = false;
if (!have_warned) {
have_warned = true;