From b538a53a9d2a581c2fddf5dae0a504ef954c3641 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Thu, 16 Mar 2023 17:02:06 +0100 Subject: [PATCH] Silence a signed vs unsigned warning when char is signed Change-Id: I5f706f87f3a15f3723a2d4ce3044b84b924da3e5 Reviewed-by: Thiago Macieira --- src/corelib/io/qurlidna.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/io/qurlidna.cpp b/src/corelib/io/qurlidna.cpp index 620034b5265..da592eb81b1 100644 --- a/src/corelib/io/qurlidna.cpp +++ b/src/corelib/io/qurlidna.cpp @@ -327,12 +327,12 @@ static bool lessThan(const QChar *a, int l, const char *c) return false; while (*c) { - if (uc == e || *uc != *c) + if (uc == e || *uc != static_cast(*c)) break; ++uc; ++c; } - return (uc == e ? *c : *uc < *c); + return uc == e ? *c : (*uc < static_cast(*c)); } static bool equal(const QChar *a, int l, const char *b)