Fix compiler warning.

v0.27.3
clanmills 5 years ago
parent 4b880a3e44
commit cca0245d87

@ -560,7 +560,8 @@ namespace Exiv2 {
bool result = false ; bool result = false ;
size_t i = 0; size_t i = 0;
while ( !result && i < s.length() ) { while ( !result && i < s.length() ) {
result = s[i++] < 32 || s[i] > 127 ; unsigned char c = (unsigned char) s[i++];
result = c < 32 || c > 127 ;
} }
return result; return result;
} }

Loading…
Cancel
Save