From 3da9cff84599c613a440e320e649dd957e89ecfb Mon Sep 17 00:00:00 2001 From: Dimitrios Apostolou Date: Sat, 4 Jul 2020 05:28:39 +0200 Subject: 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 --- src/gui/painting/qdrawhelper_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/painting') 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; -- cgit v1.2.3