1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Mac fixes

This commit is contained in:
Brian Fiete 2020-04-16 00:14:25 -07:00
parent c84da66758
commit 8709c92f22
4 changed files with 23 additions and 2 deletions

View file

@ -1831,7 +1831,7 @@ void BfIRBuilder::Write(const BfIRTypeData& type)
{
auto sizedArrayType = (BfConstantSizedArrayType*)GetConstantById(type.mId);
Write(sizedArrayType->mType);
WriteSLEB128(sizedArrayType->mLength);
WriteSLEB128((int64)sizedArrayType->mLength);
}
else if (type.mKind != BfIRTypeData::TypeKind_None)
WriteSLEB128(type.mId);