From 09d9af59f057b2d5d3fa196b1fd8040a4be930e4 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 15 Oct 2015 13:18:14 -0700 Subject: Fix left-shift wider than an int's width The other left shifts in this file already have the Q_UINT64_C wrapper. This one was missed. Change-Id: I42e7ef1a481840699a8dffff140d758ac370c402 Reviewed-by: Marc Mutz --- src/corelib/tools/qsimd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/tools/qsimd.cpp') diff --git a/src/corelib/tools/qsimd.cpp b/src/corelib/tools/qsimd.cpp index d0c65a04b1..ad02d2c147 100644 --- a/src/corelib/tools/qsimd.cpp +++ b/src/corelib/tools/qsimd.cpp @@ -676,7 +676,7 @@ void qDetectCpuFeatures() disable.prepend(' '); for (int i = 0; i < features_count; ++i) { if (disable.contains(features_string + features_indices[i])) - f &= ~(1 << i); + f &= ~(Q_UINT64_C(1) << i); } } -- cgit v1.2.3