mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 17:21:52 +01:00
Merge pull request #7 from shinyquagsire23/crc-endianness
Fix elf2rpl CRC section endianness
This commit is contained in:
commit
4eed903b0a
@ -918,7 +918,7 @@ write(ElfFile &file, const std::string &filename)
|
||||
crc = crc32(crc, reinterpret_cast<Bytef *>(section->data.data()), section->data.size());
|
||||
}
|
||||
|
||||
sectionCRCs.push_back(crc);
|
||||
sectionCRCs.push_back(byte_swap(crc));
|
||||
}
|
||||
|
||||
char *crcData = reinterpret_cast<char *>(sectionCRCs.data());
|
||||
|
Loading…
Reference in New Issue
Block a user