fixed type cast for std::isprint, to avoid assert

This commit is contained in:
Arvid Norberg 2008-08-21 13:44:30 +00:00
parent 5a922dd3ef
commit a22f6b6359
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ namespace libtorrent
for (int i = 0; i < e.string_length(); ++i) for (int i = 0; i < e.string_length(); ++i)
{ {
using namespace std; using namespace std;
if (isprint(str[i])) continue; if (isprint((unsigned char)str[i])) continue;
printable = false; printable = false;
break; break;
} }