From 35e71ef44e0c94d51d44914f3c61f6f53402a505 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 22 Nov 2021 21:19:10 +0100 Subject: [PATCH] Fixed default value --- helper/string-helper.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/string-helper.hpp b/helper/string-helper.hpp index 3bc41a6..016fcd1 100644 --- a/helper/string-helper.hpp +++ b/helper/string-helper.hpp @@ -17,8 +17,8 @@ std::vector split(const std::string& s, char delimiter) return tokens; } -char hex_char_to_int( char c ) { - unsigned result = -1; +char hex_char_to_int(const char &c) { + unsigned char result = 0; if( ('0' <= c) && (c <= '9') ) { result = c - '0'; }