mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 06:44:10 +02:00
Fixed const expr string issue on rebuild
This commit is contained in:
parent
a87ccd299d
commit
cd1e65231e
1 changed files with 1 additions and 1 deletions
|
@ -878,7 +878,7 @@ void BfContext::RebuildType(BfType* type, bool deleteOnDemandTypes, bool rebuild
|
||||||
if (type->IsConstExprValue())
|
if (type->IsConstExprValue())
|
||||||
{
|
{
|
||||||
auto constExprType = (BfConstExprValueType*)type;
|
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;
|
wantDeleteType = true;
|
||||||
}
|
}
|
||||||
if (wantDeleteType)
|
if (wantDeleteType)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue