Fix comparison of different signedness warning

This commit is contained in:
Nyall Dawson 2024-01-14 08:50:22 +10:00 committed by Jakub Melka
parent 61f489dd70
commit eefde4edee
1 changed files with 1 additions and 1 deletions

View File

@ -2174,7 +2174,7 @@ bool PDFEncoding::canConvertToEncoding(const QString& string, Encoding encoding,
ushort unicode = character.unicode(); ushort unicode = character.unicode();
bool converted = false; 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<unsigned char>(i)]) if (unicode == (*table)[static_cast<unsigned char>(i)])
{ {