Fix another thinko
This commit is contained in:
parent
39b86695cf
commit
931f8b7eb5
|
@ -145,7 +145,7 @@ typedef struct OffsetTable
|
||||||
rec.checkSum.set_for_data (hb_blob_get_data (blob, nullptr), rec.length);
|
rec.checkSum.set_for_data (hb_blob_get_data (blob, nullptr), rec.length);
|
||||||
rec.offset.serialize (c, this);
|
rec.offset.serialize (c, this);
|
||||||
void *p = c->allocate_size<void> (rec.length);
|
void *p = c->allocate_size<void> (rec.length);
|
||||||
if (unlikely (!p)) return false;
|
if (unlikely (!p)) {return false;}
|
||||||
memcpy (p, hb_blob_get_data (blob, nullptr), rec.length);
|
memcpy (p, hb_blob_get_data (blob, nullptr), rec.length);
|
||||||
if (rec.length % 4)
|
if (rec.length % 4)
|
||||||
p = c->allocate_size<void> (4 - rec.length % 4);
|
p = c->allocate_size<void> (4 - rec.length % 4);
|
||||||
|
|
|
@ -383,7 +383,7 @@ _hb_unsigned_int_mul_overflows (unsigned int count, unsigned int size)
|
||||||
static inline unsigned int
|
static inline unsigned int
|
||||||
_hb_ceil_to_4 (unsigned int v)
|
_hb_ceil_to_4 (unsigned int v)
|
||||||
{
|
{
|
||||||
return ((v - 1) & 3) + 1;
|
return ((v - 1) | 3) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue