> 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
 13:38:19 up 5 days,  8:43,  1 user,  load average: 0.56, 0.41, 0.33
This commit is contained in:
tracer-ics2023
2024-09-22 13:38:20 +08:00
committed by zzy
parent cf79ccd88b
commit b50532df70

View File

@ -53,7 +53,7 @@ static inline int print_fmt(char **out, int n, const char** fmt, va_list (*ap))
(*out) ++;
break;
case 'p':
ret = num_to_ascii((long)(va_arg(*ap, void*)), 16, n, *out);
ret = num_to_ascii((ptrdiff_t)(va_arg(*ap, void*)), 16, n, *out);
(*out) += ret;
break;
case 'x':