From 72b87ec526b1a71961d87e00a9453930074c98e5 Mon Sep 17 00:00:00 2001 From: Peter LaValle Date: Sun, 31 May 2015 13:35:10 +0100 Subject: [PATCH] removed x64 warnings --- code/BaseImporter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/BaseImporter.cpp b/code/BaseImporter.cpp index 38de47432..6d073c5a7 100644 --- a/code/BaseImporter.cpp +++ b/code/BaseImporter.cpp @@ -155,11 +155,11 @@ void BaseImporter::GetExtensionList(std::set& extensions) boost::scoped_array _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& 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) {