Problem converting value to hexadecimal
The numbers 0 .. 9 were converted wrong.
@@ -63,7 +63,7 @@ namespace ${NAMESPACE_OPEN}
// i < 16 - guaranteed
char hexChar(int i) {
if (i < 10) {
- return i - '0';
+ return i + '0';
}
return 'a' + (i - 10);
}
