From 6e0fe7b8c6ee5e1b204174a5347c8c930b9e152a Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 23 Oct 2024 08:29:51 +0200 Subject: [PATCH] type_info: char to unsigned char conversion before using the value --- src/uvw/type_info.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uvw/type_info.hpp b/src/uvw/type_info.hpp index 5aeaf793..22fb6409 100644 --- a/src/uvw/type_info.hpp +++ b/src/uvw/type_info.hpp @@ -21,7 +21,7 @@ namespace internal { auto value = offset; for(auto &&curr: view) { - value = (value ^ static_cast(curr)) * prime; + value = (value ^ static_cast(static_cast(curr))) * prime; } return value;