diff options
author | Dimitrios Apostolou <jimis@qt.io> | 2020-07-04 05:28:39 +0200 |
---|---|---|
committer | Dimitrios Apostolou <jimis@qt.io> | 2020-07-16 01:04:44 +0200 |
commit | 3da9cff84599c613a440e320e649dd957e89ecfb (patch) | |
tree | 26427901038b1a83e3f10ca7c147bab9fb366cc5 /src/gui/painting | |
parent | 273be0b9e61246e932a776b35de29c6bf6d85b41 (diff) |
Avoid warnings regarding bit-field signedness
Up to (including) C++11, integral bitfields of unspecified signedness have
implementation dependent signedness.
Detected by LGTM.com static analyzer.
Pick-to: 5.15
Change-Id: Ibaa0fdc6e443495a3cd40330c4573c9cc6ccdf5b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qdrawhelper_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h index 13629f1fea..30d0aab855 100644 --- a/src/gui/painting/qdrawhelper_p.h +++ b/src/gui/painting/qdrawhelper_p.h @@ -349,8 +349,8 @@ struct QSpanData ConicalGradient, Texture } type : 8; - int txop : 8; - int fast_matrix : 1; + signed int txop : 8; + uint fast_matrix : 1; bool bilinear; QImage *tempImage; QRgba64 solidColor; |