mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 17:01:17 +01:00
Fix another thinko
This commit is contained in:
1 parent
39b86695cf
commit
931f8b7eb5
2 files changed
+2
-2
No files matched your search
@@ -145,7 +145,7 @@ typedef struct OffsetTable
|
||||
rec.checkSum.set_for_data (hb_blob_get_data (blob, nullptr), rec.length);
|
||||
rec.offset.serialize (c, this);
|
||||
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);
|
||||
if (rec.length % 4)
|
||||
p = c->allocate_size<void> (4 - rec.length % 4);
|
||||
|
||||
+1
-1
@@ -383,7 +383,7 @@ _hb_unsigned_int_mul_overflows (unsigned int count, unsigned int size)
|
||||
static inline unsigned int
|
||||
_hb_ceil_to_4 (unsigned int v)
|
||||
{
|
||||
return ((v - 1) & 3) + 1;
|
||||
return ((v - 1) | 3) + 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user