Silence a signed vs unsigned warning when char is signed
Change-Id: I5f706f87f3a15f3723a2d4ce3044b84b924da3e5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
d8e483170e
commit
b538a53a9d
|
|
@ -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<unsigned char>(*c))
|
||||
break;
|
||||
++uc;
|
||||
++c;
|
||||
}
|
||||
return (uc == e ? *c : *uc < *c);
|
||||
return uc == e ? *c : (*uc < static_cast<unsigned char>(*c));
|
||||
}
|
||||
|
||||
static bool equal(const QChar *a, int l, const char *b)
|
||||
|
|
|
|||
Loading…
Reference in New Issue