diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-12-19 10:04:14 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-19 15:52:11 +0100 |
commit | f81f71eab22157ecb6542b3c99c81e022133b385 (patch) | |
tree | 5be99b64b9e212c51df21b9747bf4f65ccac0a9c /src/xmlpatterns/api | |
parent | 0c9f9c4528599f966e89074957bbf0593f983bd9 (diff) | |
download | qtxmlpatterns-f81f71eab22157ecb6542b3c99c81e022133b385.tar.gz |
Fix the BackgroundMask again to prevent undefined behaviour.
Change-Id: I56b16845784a8679dbd67100024ac7acc3ddfba3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/xmlpatterns/api')
-rw-r--r-- | src/xmlpatterns/api/qcoloroutput_p.h | 4 |
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: |