mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-09-06 08:16:54 +00:00
* src/utf8.c (string_ascii_p): Recode to avoid bogus GCC 4.2.1
warning about "comparison is always true due to limited range of data type" when char is unsigned.
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ bool
|
||||
string_ascii_p (char const *p)
|
||||
{
|
||||
for (; *p; p++)
|
||||
if (! (0 <= *p && *p <= 127))
|
||||
if (*p & ~0x7f)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user