Fix annoying warning in qtxmlpatterns about a value too big for the enum
authorThiago Macieira <thiago.macieira@intel.com>
Sat, 22 Dec 2012 07:47:50 +0000 (23:47 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 2 Jan 2013 09:56:44 +0000 (10:56 +0100)
commit7b1f8df5fa8ea5346315f999097b19836d7eac19
tree43410ab67969ee428dbe22f03b027c72358db669
parentd42b8e30e8ac2a33a877d37bd0ffbf616580d7fc
Fix annoying warning in qtxmlpatterns about a value too big for the enum

api/qcoloroutput_p.h:74:60: error: signed shift result (0xFFFFF00000) requires 41 bits to represent, but 'int' only has 32 bits [-Werror,-Wshift-overflow]

The masks don't look right anyway. Let's just hardcode them according
to how many colours are used.

Change-Id: Idd3438ecab3fb666bd84929fb731011224b9c68e
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/xmlpatterns/api/qcoloroutput_p.h