restores unintended addition in 43be5ba

restores two lines in restore in _hb_allocate_lig_id function that were unintentionally deleted in 43be5ba
This commit is contained in:
TheBluuDot 2022-03-19 17:47:04 +05:00 committed by Behdad Esfahbod
parent 7cb002cb58
commit 7bdc20ec81
1 changed files with 2 additions and 0 deletions

View File

@ -485,6 +485,8 @@ static inline uint8_t
_hb_allocate_lig_id (hb_buffer_t *buffer) _hb_allocate_lig_id (hb_buffer_t *buffer)
{ {
uint8_t lig_id = buffer->next_serial () & 0x07; uint8_t lig_id = buffer->next_serial () & 0x07;
if (unlikely (!lig_id))
lig_id = _hb_allocate_lig_id (buffer); /* in case of overflow */
return lig_id; return lig_id;
} }