From 9dc4f48e7a00a2c59f955a4a6cab57ce68a01e4c Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 13 Jun 2022 13:16:58 +0200 Subject: vt: tag collision-count check with ‘unlikely’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.3