QTableGenerator: Fix handling of illegal characters in fromBase8 again
Change-Id: Iaee19f71e5b74b0d43b628739039ca3c2be60cd0 Reviewed-by: Lars Knoll <lars.knoll@qt.io>bb10
parent
0521913676
commit
37afba28b1
|
|
@ -520,7 +520,7 @@ static inline int fromBase8(const char *s, const char *end)
|
|||
{
|
||||
int result = 0;
|
||||
while (*s && s != end) {
|
||||
if (*s <= '0' || *s >= '7')
|
||||
if (*s < '0' || *s > '7')
|
||||
return 0;
|
||||
result *= 8;
|
||||
result += *s - '0';
|
||||
|
|
|
|||
Loading…
Reference in New Issue