diff --git a/src/corelib/io/qurlidna.cpp b/src/corelib/io/qurlidna.cpp index 620034b526..da592eb81b 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)