[cff] Add a likely()

This commit is contained in:
Behdad Esfahbod 2022-11-21 17:02:11 -07:00
parent 191025cc96
commit 38efd1862f
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ struct str_encoder_t
{
unsigned int offset = buff.length;
/* Manually resize buffer since faster. */
if ((signed) (buff.length + str.length) <= buff.allocated)
if (likely ((signed) (buff.length + str.length) <= buff.allocated))
buff.length += str.length;
else if (unlikely (!buff.resize (offset + str.length)))
{