--- a/src/xmlpatterns/api/qcoloroutput_p.h	2015-05-07 16:14:48.000000000 +0200
+++ b/src/xmlpatterns/api/qcoloroutput_p.h	2016-09-11 22:21:15.868628553 +0200
@@ -70,8 +70,8 @@
             ForegroundShift = 10,
             BackgroundShift = 20,
             SpecialShift    = 20,
-            ForegroundMask  = ((1 << ForegroundShift) - 1) << ForegroundShift,
-            BackgroundMask  = ((1 << BackgroundShift) - 1) << BackgroundShift
+            ForegroundMask  = ((1 << ForegroundShift) - 1),
+            BackgroundMask  = ((1 << BackgroundShift) - 1)
         };
 
     public:
