summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2012-12-19 10:04:14 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-19 15:52:11 +0100
commitf81f71eab22157ecb6542b3c99c81e022133b385 (patch)
tree5be99b64b9e212c51df21b9747bf4f65ccac0a9c /src
parent0c9f9c4528599f966e89074957bbf0593f983bd9 (diff)
downloadqtxmlpatterns-f81f71eab22157ecb6542b3c99c81e022133b385.tar.gz
qtxmlpatterns-f81f71eab22157ecb6542b3c99c81e022133b385.tar.bz2
qtxmlpatterns-f81f71eab22157ecb6542b3c99c81e022133b385.zip
Fix the BackgroundMask again to prevent undefined behaviour.
Change-Id: I56b16845784a8679dbd67100024ac7acc3ddfba3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/xmlpatterns/api/qcoloroutput_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmlpatterns/api/qcoloroutput_p.h b/src/xmlpatterns/api/qcoloroutput_p.h
index 01614da..bd2d5a5 100644
--- a/src/xmlpatterns/api/qcoloroutput_p.h
+++ b/src/xmlpatterns/api/qcoloroutput_p.h
@@ -70,8 +70,8 @@ namespace QPatternist
ForegroundShift = 10,
BackgroundShift = 20,
SpecialShift = 20,
- ForegroundMask = ((1 << ForegroundShift) - 1) << ForegroundShift,
- BackgroundMask = ((1 << (sizeof(int) - BackgroundShift)) - 1) << BackgroundShift
+ ForegroundMask = 0xffc00,
+ BackgroundMask = 0xfff00000
};
public: