1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

FixIntUnknown fix

This commit is contained in:
Brian Fiete 2022-05-15 18:02:02 -07:00
parent 75107a947c
commit b4b0edf453

View file

@ -7454,7 +7454,8 @@ void BfModule::FixIntUnknown(BfTypedValue& typedVal, BfType* matchType)
void BfModule::FixIntUnknown(BfTypedValue& lhs, BfTypedValue& rhs)
{
if ((lhs.mType != NULL) && (lhs.mType->IsIntUnknown()) && (rhs.mType != NULL) && (rhs.mType->IsInteger()))
if ((lhs.mType != NULL) && (lhs.mType->IsIntUnknown()) && (rhs.mType != NULL) &&
(rhs.mType->IsInteger()) && (!rhs.mType->IsIntUnknown()))
{
if (CanCast(lhs, rhs.mType))
{
@ -7465,7 +7466,8 @@ void BfModule::FixIntUnknown(BfTypedValue& lhs, BfTypedValue& rhs)
}
}
if ((rhs.mType != NULL) && (rhs.mType->IsIntUnknown()) && (lhs.mType != NULL) && (lhs.mType->IsInteger()))
if ((rhs.mType != NULL) && (rhs.mType->IsIntUnknown()) && (lhs.mType != NULL) &&
(lhs.mType->IsInteger()) && (!lhs.mType->IsIntUnknown()))
{
if (CanCast(rhs, lhs.mType))
{