mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed generic const bool specification
This commit is contained in:
parent
946a72d21d
commit
e30ca6efb9
1 changed files with 1 additions and 1 deletions
|
@ -12873,7 +12873,7 @@ BfIRValue BfModule::CastToValue(BfAstNode* srcNode, BfTypedValue typedVal, BfTyp
|
||||||
BfConstExprValueType* toConstExprValueType = (BfConstExprValueType*)toType;
|
BfConstExprValueType* toConstExprValueType = (BfConstExprValueType*)toType;
|
||||||
|
|
||||||
auto variantVal = TypedValueToVariant(srcNode, typedVal);
|
auto variantVal = TypedValueToVariant(srcNode, typedVal);
|
||||||
if ((mBfIRBuilder->IsInt(variantVal.mTypeCode)) && (mBfIRBuilder->IsInt(toConstExprValueType->mValue.mTypeCode)))
|
if ((mBfIRBuilder->IsIntable(variantVal.mTypeCode)) && (mBfIRBuilder->IsIntable(toConstExprValueType->mValue.mTypeCode)))
|
||||||
{
|
{
|
||||||
if (variantVal.mInt64 == toConstExprValueType->mValue.mInt64)
|
if (variantVal.mInt64 == toConstExprValueType->mValue.mInt64)
|
||||||
return typedVal.mValue;
|
return typedVal.mValue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue