From e48fc5ad3fb7494df08a08fa1ef78566d658bb74 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Sun, 27 Dec 2020 13:12:46 +0100 Subject: [PATCH] hash.cpp: merge PR#3 in rokkithash code --- src/hash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hash.cpp b/src/hash.cpp index 137e98a5..5698bb9a 100644 --- a/src/hash.cpp +++ b/src/hash.cpp @@ -61,7 +61,7 @@ uint32_t IRAM_ATTR rokkit(const char *data, int len) { case 3: hash += *((uint16_t *)data); hash ^= hash << 16; - hash ^= ((signed char)data[2]) << 18; + hash ^= ((unit32_t)data[2]) << 18; hash += hash >> 11; break; case 2: