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

Fixed const expr string issue on rebuild

This commit is contained in:
Brian Fiete 2022-02-04 14:42:01 -05:00
parent a87ccd299d
commit cd1e65231e

View file

@ -878,7 +878,7 @@ void BfContext::RebuildType(BfType* type, bool deleteOnDemandTypes, bool rebuild
if (type->IsConstExprValue())
{
auto constExprType = (BfConstExprValueType*)type;
if (constExprType->mType->mSize != mScratchModule->GetPrimitiveType(constExprType->mValue.mTypeCode)->mSize)
if ((constExprType->mValue.mTypeCode != BfTypeCode_StringId) && (constExprType->mType->mSize != mScratchModule->GetPrimitiveType(constExprType->mValue.mTypeCode)->mSize))
wantDeleteType = true;
}
if (wantDeleteType)