aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 7b41efd2a..717891a19 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -1430,7 +1430,7 @@ long hex2long(const char* hexString)
while (*hexString && ret >= 0)
{
- ret = (ret << 4) | hextable[*hexString++];
+ ret = (ret << 4) | hextable[(uint8_t)*hexString++];
}
return ret;