mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-01-06 12:33:01 -06:00
Fix hexadecimal conversion in read_value().
This commit is contained in:
parent
f52751d325
commit
5c12c1b2e4
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user