forked from qt-creator/qt-creator
Tests: Minor cleanup in debugger/simple_test_app
* Replace double casts with ll suffix, which resolves the warning. * Replace recurring shifts by using a local variable. Change-Id: I344fab50619dc27e68a151abb2f3061543c36662 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
eb184ff052
commit
6d6c0c81ed
@@ -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.
|
||||
|
Reference in New Issue
Block a user