diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp index 425ce874afd..3bbe0d55201 100644 --- a/tests/manual/debugger/simple/simple_test_app.cpp +++ b/tests/manual/debugger/simple/simple_test_app.cpp @@ -6106,14 +6106,16 @@ namespace qjson { }; QJsonArray arr; for (unsigned int i = 0; i < 32; ++i) { - arr.append(QJsonValue(qint64(quint64(1) << i) - 1)); - arr.append(QJsonValue(qint64(quint64(1) << i))); - arr.append(QJsonValue(qint64(quint64(1) << i) + 1)); + const qint64 bit = 1ll << i; + arr.append(QJsonValue(bit - 1)); + arr.append(QJsonValue(bit)); + arr.append(QJsonValue(bit + 1)); } for (unsigned int i = 0; i < 32; ++i) { - arr.append(QJsonValue(-qint64(quint64(1) << i) + 1)); - arr.append(QJsonValue(-qint64(quint64(1) << i))); - arr.append(QJsonValue(-qint64(quint64(1) << i) - 1)); + const qint64 bit = -(1ll << i); + arr.append(QJsonValue(bit + 1)); + arr.append(QJsonValue(bit)); + arr.append(QJsonValue(bit - 1)); } BREAK_HERE; // Check v -1 QJsonValue.