diff --git a/src/lib/ebus/filereader.cpp b/src/lib/ebus/filereader.cpp index 200a0170..7daab6df 100755 --- a/src/lib/ebus/filereader.cpp +++ b/src/lib/ebus/filereader.cpp @@ -120,7 +120,7 @@ void FileReader::tolower(string* str) { static size_t hashFunction(const string& str) { size_t hash = 0; - for (char c : str) { + for (unsigned char c : str) { hash = (31 * hash) ^ c; } return hash;