Silence a signed vs unsigned warning when char is signed
Change-Id: I5f706f87f3a15f3723a2d4ce3044b84b924da3e5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
d8e483170e
commit
b538a53a9d
@ -327,12 +327,12 @@ static bool lessThan(const QChar *a, int l, const char *c)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
while (*c) {
|
while (*c) {
|
||||||
if (uc == e || *uc != *c)
|
if (uc == e || *uc != static_cast<unsigned char>(*c))
|
||||||
break;
|
break;
|
||||||
++uc;
|
++uc;
|
||||||
++c;
|
++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)
|
static bool equal(const QChar *a, int l, const char *b)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user