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:
Friedemann Kleint 2016-03-08 09:19:01 +01:00
parent 2d276b3ada
commit 4ef990ce4a

View File

@ -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);