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(a_Hex - 'a'); + return static_cast(10 + (a_Hex - 'a')); } if (('A' <= a_Hex) && (a_Hex <= 'F')) { - return static_cast(a_Hex - 'A'); + return static_cast(10 + (a_Hex - 'A')); } return 0xff; }