Commit f81f71ea authored by Erik Verbruggen's avatar Erik Verbruggen Committed by The Qt Project
Browse files

Fix the BackgroundMask again to prevent undefined behaviour.


Change-Id: I56b16845784a8679dbd67100024ac7acc3ddfba3
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 0c9f9c45
No related merge requests found
Showing with 2 additions and 2 deletions
......@@ -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:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment