Merge pull request #29 from jakcron/refactor-ISerialisable

[nx] silence warnings.
This commit is contained in:
Jack 2018-07-01 13:43:52 +08:00 committed by GitHub
commit 3949d34ae4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,9 +61,9 @@ void nx::NpdmBinary::toBytes()
uint32_t offset, size;
} acid, aci;
acid.offset = align(sizeof(sNpdmHeader), npdm::kSectionAlignSize);
acid.offset = (uint32_t)align(sizeof(sNpdmHeader), npdm::kSectionAlignSize);
acid.size = (uint32_t)mAcid.getBytes().size();
aci.offset = acid.offset + align(acid.size, npdm::kSectionAlignSize);
aci.offset = (uint32_t)acid.offset + align(acid.size, npdm::kSectionAlignSize);
aci.size = (uint32_t)mAci.getBytes().size();