diff --git a/ets2panda/checker/ets/arithmetic.cpp b/ets2panda/checker/ets/arithmetic.cpp index b8ba2161846da19c5572d2a91ae0ce15ede063a7..91fbf6bbb4b3fa361df9abfcccd7eae92469f80f 100644 --- a/ets2panda/checker/ets/arithmetic.cpp +++ b/ets2panda/checker/ets/arithmetic.cpp @@ -616,7 +616,7 @@ bool ETSChecker::CheckValidEqualReferenceType(checker::Type *const leftType, che } } - if (FindOpArgsType(this, leftType, rightType, GetGlobalTypesHolder()->GlobalIntegerBuiltinType()) && + if (FindOpArgsType(this, leftType, rightType, GetGlobalTypesHolder()->GlobalNumericBuiltinType()) && (leftType->IsETSEnumType() || rightType->IsETSEnumType())) { return true; }