Fixed striped structs with bitfields

This commit is contained in:
drmortalwombat 2025-02-09 22:10:39 +01:00
parent 4a87e4d97b
commit 0959a15b10
2 changed files with 6 additions and 1 deletions

View File

@ -2113,6 +2113,7 @@ Declaration* Declaration::Clone(void)
ndec->mOffset = mOffset;
ndec->mStride = mStride;
ndec->mStripe = mStripe;
ndec->mBits = mBits;
ndec->mBase = mBase;
ndec->mFlags = mFlags;
ndec->mScope = mScope;
@ -2184,6 +2185,7 @@ Declaration* Declaration::ToStriped(int stripe)
ndec->mOffset = mOffset * stripe;
ndec->mStride = mStride;
ndec->mStripe = stripe;
ndec->mBits = mBits;
ndec->mFlags = mFlags;
ndec->mIdent = mIdent;
ndec->mQualIdent = mQualIdent;
@ -2258,6 +2260,7 @@ Declaration* Declaration::ToVolatileType(void)
ndec->mSize = mSize;
ndec->mStride = mStride;
ndec->mBase = mBase;
ndec->mBits = mBits;
ndec->mFlags = mFlags | DTF_VOLATILE;
ndec->mScope = mScope;
ndec->mParams = mParams;
@ -2313,6 +2316,7 @@ Declaration* Declaration::ToConstType(void)
ndec->mStride = mStride;
ndec->mStripe = mStripe;
ndec->mBase = mBase;
ndec->mBits = mBits;
ndec->mFlags = mFlags | DTF_CONST;
ndec->mScope = mScope;
ndec->mParams = mParams;
@ -2376,6 +2380,7 @@ Declaration* Declaration::ToMutableType(void)
ndec->mStride = mStride;
ndec->mStripe = mStripe;
ndec->mBase = mBase;
ndec->mBits = mBits;
ndec->mFlags = mFlags | DTF_CONST;
ndec->mScope = mScope;
ndec->mParams = mParams;

View File

@ -23226,7 +23226,7 @@ void InterCodeProcedure::Close(void)
{
GrowingTypeArray tstack(IT_NONE);
CheckFunc = !strcmp(mIdent->mString, "reuref<struct Node>::(cast)");
CheckFunc = !strcmp(mIdent->mString, "shipyard_navigate");
CheckCase = false;
mEntryBlock = mBlocks[0];