summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-08-29 15:34:09 +0200
committerLukas Pioch <lukas@zgow.de>2017-08-29 16:09:39 +0200
commitfa5bf7d5cd2e4abb81c2934d1736251e8692458f (patch)
tree49898bacddb77efe512ee45c7106b827d31026e8
parentAPIDump: Removed unneeded Globals prefix (diff)
downloadcuberite-fa5bf7d5cd2e4abb81c2934d1736251e8692458f.tar
cuberite-fa5bf7d5cd2e4abb81c2934d1736251e8692458f.tar.gz
cuberite-fa5bf7d5cd2e4abb81c2934d1736251e8692458f.tar.bz2
cuberite-fa5bf7d5cd2e4abb81c2934d1736251e8692458f.tar.lz
cuberite-fa5bf7d5cd2e4abb81c2934d1736251e8692458f.tar.xz
cuberite-fa5bf7d5cd2e4abb81c2934d1736251e8692458f.tar.zst
cuberite-fa5bf7d5cd2e4abb81c2934d1736251e8692458f.zip
Diffstat (limited to '')
-rw-r--r--src/UUID.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UUID.cpp b/src/UUID.cpp
index e150b3603..e2713157d 100644
--- a/src/UUID.cpp
+++ b/src/UUID.cpp
@@ -68,11 +68,11 @@ static Byte FromHexDigit(char a_Hex)
}
if (('a' <= a_Hex) && (a_Hex <= 'f'))
{
- return static_cast<Byte>(a_Hex - 'a');
+ return static_cast<Byte>(10 + (a_Hex - 'a'));
}
if (('A' <= a_Hex) && (a_Hex <= 'F'))
{
- return static_cast<Byte>(a_Hex - 'A');
+ return static_cast<Byte>(10 + (a_Hex - 'A'));
}
return 0xff;
}