fix x64 compile error. add arm support in IronPad

This commit is contained in:
2023-10-29 12:36:03 +08:00
parent b402e8db8e
commit 9475e2abc5
3 changed files with 22 additions and 4 deletions

View File

@ -185,7 +185,7 @@ namespace LibCmo::CK2::ObjImpls {
}
// calc real consumed size
CKDWORD realConsumedSize = rawbuf - static_cast<CKBYTE*>(buf.get());
CKDWORD realConsumedSize = static_cast<CKDWORD>(rawbuf - static_cast<CKBYTE*>(buf.get()));
// assign to reserved length field
// length also include length indicator it self
*reservedBufDwordSize = realConsumedSize / CKSizeof(CKDWORD);