diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2010-12-03 09:01:28 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2010-12-03 09:01:28 (GMT) |
commit | 3f7c80d105d18a3b901a7f3077d8faaea63e0659 (patch) | |
tree | d084d16cbc4340b342c684b401625beb47f1b667 /src/gui/graphicsview | |
parent | 1c6fb3c942a9a079a7fa3d157f66230818f22b96 (diff) | |
download | Qt-3f7c80d105d18a3b901a7f3077d8faaea63e0659.zip Qt-3f7c80d105d18a3b901a7f3077d8faaea63e0659.tar.gz Qt-3f7c80d105d18a3b901a7f3077d8faaea63e0659.tar.bz2 |
Fix integer overflow in bitfield
UnfeasibleConstraint is 4, and that does not fit in 2 bits.
Spotted by Thiago
Reviewed-by: Thiago
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgridlayoutengine_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgridlayoutengine_p.h b/src/gui/graphicsview/qgridlayoutengine_p.h index 44efbba..1b2e2ec 100644 --- a/src/gui/graphicsview/qgridlayoutengine_p.h +++ b/src/gui/graphicsview/qgridlayoutengine_p.h @@ -433,7 +433,7 @@ private: // Lazily computed from the above user input mutable int q_cachedEffectiveFirstRows[NOrientations]; mutable int q_cachedEffectiveLastRows[NOrientations]; - mutable quint8 q_cachedConstraintOrientation : 2; + mutable quint8 q_cachedConstraintOrientation : 3; // Layout item input mutable QLayoutStyleInfo q_cachedDataForStyleInfo; |