From 063d4590a54e81c173094c46ceb3861e298fd7a0 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 9 Feb 2025 10:18:35 +0100 Subject: [PATCH] Fix nibble parsing --- src/common/utils/string.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils/string.hpp b/src/common/utils/string.hpp index 0c1bb0c5..401738b7 100644 --- a/src/common/utils/string.hpp +++ b/src/common/utils/string.hpp @@ -125,7 +125,7 @@ namespace utils::string if (lower >= 'a' && lower <= 'f') { - return static_cast(lower - 'a'); + return static_cast(10 + (lower - 'a')); } return static_cast(0);