mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed field access of static pointer struct member
This commit is contained in:
parent
49ca3b67bf
commit
9185d9f02a
1 changed files with 1 additions and 1 deletions
|
@ -8551,7 +8551,7 @@ void BfExprEvaluator::LookupQualifiedStaticField(BfAstNode* nameNode, BfIdentifi
|
||||||
{
|
{
|
||||||
BfPointerType* structPtrType = (BfPointerType*)mResult.mType;
|
BfPointerType* structPtrType = (BfPointerType*)mResult.mType;
|
||||||
mResult = mModule->LoadValue(mResult);
|
mResult = mModule->LoadValue(mResult);
|
||||||
mResult.mType = structPtrType->mElementType;
|
mResult = BfTypedValue(mResult.mValue, structPtrType->mElementType, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mResult)
|
if (!mResult)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue