aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qmlcompiler/qqmljstyperesolver.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/qmlcompiler/qqmljstyperesolver.cpp b/src/qmlcompiler/qqmljstyperesolver.cpp
index 9160985635..d1e1fa66f8 100644
--- a/src/qmlcompiler/qqmljstyperesolver.cpp
+++ b/src/qmlcompiler/qqmljstyperesolver.cpp
@@ -215,10 +215,7 @@ QQmlJSTypeResolver::typeForBinaryOperation(QSOperator::Op oper, const QQmlJSRegi
if (result == boolType())
return QQmlJSRegisterContent::create(intType(), intType(),
QQmlJSRegisterContent::Builtin);
- if (isNumeric(result))
- return QQmlJSRegisterContent::create(realType(), realType(),
- QQmlJSRegisterContent::Builtin);
- return QQmlJSRegisterContent::create(jsPrimitiveType(), realType(),
+ return QQmlJSRegisterContent::create(realType(), realType(),
QQmlJSRegisterContent::Builtin);
}
case QSOperator::Op::Mul:
@@ -226,9 +223,7 @@ QQmlJSTypeResolver::typeForBinaryOperation(QSOperator::Op oper, const QQmlJSRegi
case QSOperator::Op::Exp:
case QSOperator::Op::Mod:
return QQmlJSRegisterContent::create(
- isNumeric(merge(containedType(left), containedType(right))) ? realType()
- : jsPrimitiveType(),
- realType(), QQmlJSRegisterContent::Builtin);
+ realType(), realType(), QQmlJSRegisterContent::Builtin);
case QSOperator::Op::As:
return right;
default: