Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.0
-
None
-
Mac OS X 10.8.4
Description
This seems a bug of QML.
import QtQuick 2.0 Rectangle { width: 360 height: 360 property int a: -1 property int b: 1 Component.onCompleted: { for (var i = 0; i < 10000; i++) { var x = Math.min(a + 0, b + 0); if (x > 0) { console.log("min(-1,1) =", x); console.log("loop count =", i); return; } } console.log("OK"); } }
Output on my environment:
min(-1,1) = 1 loop count = 5891