> 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 22:25:29 up 3 days 21:26, 2 users, load average: 1.44, 1.34, 0.97
This commit is contained in:
parent
6dde11822d
commit
9674f3b0c2
1 changed files with 6 additions and 1 deletions
|
@ -88,6 +88,11 @@ static char *rl_gets() {
|
|||
* uint.
|
||||
*/
|
||||
static word_t parse_uint(const char *arg, bool *success) {
|
||||
if (arg == NULL) {
|
||||
puts("Invalid uint argument.");
|
||||
*success = false;
|
||||
return 0;
|
||||
}
|
||||
int base = 10;
|
||||
int token_length = strnlen(arg, 34);
|
||||
if (token_length > 2) {
|
||||
|
|
Loading…
Reference in a new issue