From 94932c1fe15551583607a77fe5b5585a23f23674 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 16 Mar 2019 15:50:45 +0100 Subject: [PATCH] fix for #266 --- src/lib/ebus/filereader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;