DiskProbe :

* Fix a gcc4 warning in the boolean operation



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34203 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Saint-Pierre 2009-11-23 22:59:59 +00:00
parent d503f2628b
commit 37e44362b6

View File

@ -45,8 +45,8 @@ is_valid_utf8(uint8 *data, size_t size)
if ((data[i] & 0x80) == 0) { if ((data[i] & 0x80) == 0) {
// a single byte character // a single byte character
if (data[i] < ' ' if ((data[i] < ' '
&& data[i] != 0x0d && data[i] != 0x09 && data[i] != 0x0a && data[i] != 0x0d && data[i] != 0x09 && data[i] != 0x0a)
|| data[i] == 0x7f) || data[i] == 0x7f)
return false; return false;