> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 17:18:37 up 6 days, 12:24,  1 user,  load average: 1.44, 0.77, 0.60
This commit is contained in:
tracer-ics2023
2024-09-23 17:18:40 +08:00
committed by zzy
parent 825caebe12
commit 5619dfc656

View File

@ -19,7 +19,7 @@ int num_to_ascii(int64_t num, int power, int size, char *buf) {
_buf[1] = '0';
_buf[2] = 'x';
}
_buf[i] = (num % power) < 10 ? ('0' + num % power) : ('a' + num % power - 10);
_buf[i] = (num % power) < 10 ? ('0' + (num % power)) : ('a' + (num % power) - 10);
num /= power;
}
if (i > size) {