tst_QKeyEvent: Fix MSVC warning about 64bit shift.
tst_qkeyevent.cpp(140): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) Change-Id: Id3e0eea125f7f7ec13f9b9428e034b922d2ce204 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
This commit is contained in:
parent
2d276b3ada
commit
4ef990ce4a
@ -137,7 +137,7 @@ void tst_QKeyEvent::modifiers_data()
|
||||
for (quint64 bitmask = 1; bitmask < (1 << kNumModifiers) ; ++bitmask) {
|
||||
QVector<int> modifierCombination;
|
||||
for (quint64 modifier = 0; modifier < kNumModifiers; ++modifier) {
|
||||
if (bitmask & (1 << modifier))
|
||||
if (bitmask & (quint64(1) << modifier))
|
||||
modifierCombination.append(modifier);
|
||||
}
|
||||
modifierCombinations.append(modifierCombination);
|
||||
|
Loading…
Reference in New Issue
Block a user