vt: tag collision-count check with ‘unlikely’

This commit is contained in:
Daniel Eklöf 2022-06-13 13:16:58 +02:00
parent fbcb30bf98
commit 9dc4f48e7a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
vt.c
View file

@ -753,7 +753,7 @@ action_utf8_print(struct terminal *term, char32_t wc)
/* Look for existing combining chain */ /* Look for existing combining chain */
while (true) { while (true) {
if (collision_count > 128) { if (unlikely(collision_count > 128)) {
static bool have_warned = false; static bool have_warned = false;
if (!have_warned) { if (!have_warned) {
have_warned = true; have_warned = true;