From c2fde559761612c892d47b540a6ad19f96de7b75 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 8 Oct 2020 12:20:49 +0200 Subject: [PATCH] Fix a compile error on Android in debug builds Android uses -Werror,-Wsign-compare. Change-Id: I4e861ebd6ea00914223358629f8e898c2aa67cd0 Reviewed-by: Assam Boudjelthia --- src/gui/painting/qcolortransfertable_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/painting/qcolortransfertable_p.h b/src/gui/painting/qcolortransfertable_p.h index b518df13b96..fdf68b78da6 100644 --- a/src/gui/painting/qcolortransfertable_p.h +++ b/src/gui/painting/qcolortransfertable_p.h @@ -69,12 +69,12 @@ public: QColorTransferTable(uint32_t size, const QList &table) noexcept : m_tableSize(size), m_table8(table) { - Q_ASSERT(size <= table.count()); + Q_ASSERT(qsizetype(size) <= table.count()); } QColorTransferTable(uint32_t size, const QList &table) noexcept : m_tableSize(size), m_table16(table) { - Q_ASSERT(size <= table.count()); + Q_ASSERT(qsizetype(size) <= table.count()); } bool isEmpty() const