Fix extern const struct merging

This commit is contained in:
drmortalwombat 2024-10-20 11:11:43 +02:00
parent 4d193a30b0
commit 94607cab7f

View File

@ -691,13 +691,11 @@ Declaration* Parser::ParseStructDeclaration(uint64 flags, DecType dt, Declaratio
mScope = oscope;
}
else
{
if ((flags & ~dec->mFlags) == DTF_CONST)
dec = dec->ToConstType();
else if ((flags & ~dec->mFlags) == DTF_VOLATILE)
dec = dec->ToVolatileType();
}
if ((flags & ~dec->mFlags) == DTF_CONST)
dec = dec->ToConstType();
else if ((flags & ~dec->mFlags) == DTF_VOLATILE)
dec = dec->ToVolatileType();
return dec;
}