removed x64 warnings

pull/577/head
Peter LaValle 2015-05-31 13:35:10 +01:00
parent 69b9bfec51
commit 72b87ec526
1 changed files with 5 additions and 5 deletions

View File

@ -155,11 +155,11 @@ void BaseImporter::GetExtensionList(std::set<std::string>& extensions)
boost::scoped_array<char> _buffer (new char[searchBytes+1 /* for the '\0' */]);
char* buffer = _buffer.get();
const unsigned int read = pStream->Read(buffer,1,searchBytes);
const size_t read = pStream->Read(buffer,1,searchBytes);
if (!read)
return false;
for (unsigned int i = 0; i < read;++i)
for (size_t i = 0; i < read; ++i)
buffer[i] = ::tolower(buffer[i]);
// It is not a proper handling of unicode files here ...
@ -392,11 +392,11 @@ void BaseImporter::ConvertToUTF8(std::vector<char>& data)
// Convert to UTF8 data to ISO-8859-1
void BaseImporter::ConvertUTF8toISO8859_1(std::string& data)
{
unsigned int size = data.size();
unsigned int i = 0, j = 0;
size_t size = data.size();
size_t i = 0, j = 0;
while(i < size) {
if((unsigned char) data[i] < 0x80) {
if ((unsigned char) data[i] < (size_t) 0x80) {
data[j] = data[i];
} else if(i < size - 1) {
if((unsigned char) data[i] == 0xC2) {