mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-30 15:28:16 +02:00
TrueType Subsetting : Correct the checksum calculation
This commit is contained in:
parent
2bd590b649
commit
0bf5e18b14
1 changed files with 1 additions and 1 deletions
|
|
@ -716,7 +716,7 @@ cairo_truetype_font_calculate_checksum (cairo_truetype_font_t *font,
|
|||
p = (uint32_t *) (data + start);
|
||||
padded_end = (uint32_t *) (data + ((end + 3) & ~3));
|
||||
while (p < padded_end)
|
||||
checksum += *p++;
|
||||
checksum += be32_to_cpu(*p++);
|
||||
|
||||
return checksum;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue