> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux 09:27:33 up 1 day 9:43, 2 users, load average: 0.45, 0.46, 0.48
This commit is contained in:
parent
755eaa921c
commit
e79bf232dc
1 changed files with 2 additions and 2 deletions
|
@ -34,11 +34,11 @@ void gen_num(void) {
|
||||||
switch(rand() % 2) {
|
switch(rand() % 2) {
|
||||||
case 0:
|
case 0:
|
||||||
len = snprintf(buf_ptr, 100, "%u", num);
|
len = snprintf(buf_ptr, 100, "%u", num);
|
||||||
ref_len = snprintf(buf_ptr, 100, "%uU", num);
|
ref_len = snprintf(ref_buf_ptr, 100, "%uU", num);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
len = snprintf(buf_ptr, 100, "0x%x", num);
|
len = snprintf(buf_ptr, 100, "0x%x", num);
|
||||||
ref_len = snprintf(buf_ptr, 100, "%uU", num);
|
ref_len = snprintf(ref_buf_ptr, 100, "%uU", num);
|
||||||
break;
|
break;
|
||||||
default: assert(0);
|
default: assert(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue