From 113772521d65501914a1bcd769437aac28b10307 Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Sun, 27 Aug 2023 14:32:58 +0100 Subject: [PATCH] type_info: avoid gcc-7 -Wsign-conversion warning (#301) --- src/uvw/type_info.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uvw/type_info.hpp b/src/uvw/type_info.hpp index 176dea85..e56cabb7 100644 --- a/src/uvw/type_info.hpp +++ b/src/uvw/type_info.hpp @@ -20,7 +20,8 @@ namespace internal { auto value = offset; while(*curr != 0) { - value = (value ^ static_cast(*(curr++))) * prime; + auto curr_val_int = static_cast(*(curr++)); + value = (value ^ curr_val_int) * prime; } return value;