Fixed default value
This commit is contained in:
parent
8ef6318a56
commit
35e71ef44e
@ -17,8 +17,8 @@ std::vector<std::string> split(const std::string& s, char delimiter)
|
|||||||
return tokens;
|
return tokens;
|
||||||
}
|
}
|
||||||
|
|
||||||
char hex_char_to_int( char c ) {
|
char hex_char_to_int(const char &c) {
|
||||||
unsigned result = -1;
|
unsigned char result = 0;
|
||||||
if( ('0' <= c) && (c <= '9') ) {
|
if( ('0' <= c) && (c <= '9') ) {
|
||||||
result = c - '0';
|
result = c - '0';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user