Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.4.1
-
d93f5eb55e (qt/tqtc-qmlcompilerplus/6.2) 0fbb39435e (qt/qtdeclarative/6.4) 0fbb39435e (qt/tqtc-qtdeclarative/6.4) d93f5eb55e (qt/tqtc-qmlcompilerplus/6.2.7), 35e2bb090 (dev)
Description
When using +/- Infinity with int properties like in
property int x: Infinity
this is converted to
..../Foo_qml.cpp:1100:45: warning: overflow in conversion from ‘double’ to ‘int’ changes value from ‘+Inf’ to ‘2147483647’ [-Woverflow] 1100 | r2_1 = std::numeric_limits<double>::infinity(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
which may not be the desired thing.
Due to the lack of real integer values in this place, it's better to use the desired values directly instead of Infinity anyway, but I thought it's worth an issue.