mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 19:41:49 +00:00
Bug 643137 - strict alignment issues when displaying OpenType fonts on sparc64. r=roc
This commit is contained in:
parent
d6412bb1fd
commit
716b7f03e7
@ -68,8 +68,10 @@ class OTSStream {
|
||||
}
|
||||
|
||||
while (length >= 4) {
|
||||
chksum_ += ntohl(*reinterpret_cast<const uint32_t*>(
|
||||
reinterpret_cast<const uint8_t*>(data) + offset));
|
||||
uint32_t tmp;
|
||||
std::memcpy(&tmp, reinterpret_cast<const uint8_t *>(data) + offset,
|
||||
sizeof(uint32_t));
|
||||
chksum_ += ntohl(tmp);
|
||||
length -= 4;
|
||||
offset += 4;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user