[aat-layout] Add an unlikely()

This commit is contained in:
Behdad Esfahbod 2022-07-01 16:20:31 -06:00
parent b8c7c0a0e6
commit 534b0911f7
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ struct ObsoleteTypes
/* If offset is less than base, return an offset that would /* If offset is less than base, return an offset that would
* result in an address half a 32bit address-space away, * result in an address half a 32bit address-space away,
* to make sure sanitize fails even on 32bit builds. */ * to make sure sanitize fails even on 32bit builds. */
if (offset < unsigned ((const char *) array - (const char *) base)) if (unlikely (offset < unsigned ((const char *) array - (const char *) base)))
return INT_MAX / T::static_size; return INT_MAX / T::static_size;
/* https://github.com/harfbuzz/harfbuzz/issues/2816 */ /* https://github.com/harfbuzz/harfbuzz/issues/2816 */