> 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:48:32 up 1 day 10:04, 2 users, load average: 0.68, 0.58, 0.46
This commit is contained in:
parent
596a26b36c
commit
0f52515269
1 changed files with 2 additions and 2 deletions
|
@ -29,11 +29,11 @@ void gen(char c) {
|
|||
}
|
||||
|
||||
void gen_num(void) {
|
||||
uint32_t num = rand();
|
||||
int32_t num = rand();
|
||||
int len = 0, ref_len = 0;
|
||||
switch(rand() % 2) {
|
||||
case 0:
|
||||
len = snprintf(buf_ptr, 100, "%u", num);
|
||||
len = snprintf(buf_ptr, 100, "%d", num);
|
||||
ref_len = snprintf(ref_buf_ptr, 100, "%uU", num);
|
||||
break;
|
||||
case 1:
|
||||
|
|
Loading…
Reference in a new issue