From eefde4edee3187d0710100861602b4ca17503e83 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Sun, 14 Jan 2024 08:50:22 +1000 Subject: [PATCH] Fix comparison of different signedness warning --- Pdf4QtLibCore/sources/pdfencoding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pdf4QtLibCore/sources/pdfencoding.cpp b/Pdf4QtLibCore/sources/pdfencoding.cpp index dd7f919..92e0aa5 100644 --- a/Pdf4QtLibCore/sources/pdfencoding.cpp +++ b/Pdf4QtLibCore/sources/pdfencoding.cpp @@ -2174,7 +2174,7 @@ bool PDFEncoding::canConvertToEncoding(const QString& string, Encoding encoding, ushort unicode = character.unicode(); bool converted = false; - for (int i = 0; i < table->size(); ++i) + for (int i = 0; i < static_cast< int >(table->size()); ++i) { if (unicode == (*table)[static_cast(i)]) {