Fix hexadecimal conversion in read_value().

This commit is contained in:
Martin Whitaker 2024-06-21 22:58:25 +01:00
parent f52751d325
commit 5c12c1b2e4
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ uintptr_t read_value(int row, int col, int field_width, int shift)
for (int i = (base == 16) ? 2 : 0; i < n; i++) {
value *= base;
if (buffer[i] >= 'a') {
value += buffer[i] - 'a';
value += buffer[i] - 'a' + 10;
} else {
value += buffer[i] - '0';
}