Cast pointer to uintptr_t type to avoid compiler warnings
This commit is contained in:
parent
bd54fe83f8
commit
160d792399
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ PROCESS_THREAD(shell_poke_process, ev, data)
|
|||
PROCESS_EXIT();
|
||||
}
|
||||
|
||||
address = (uint8_t *)(int)shell_strtolong(args, &next);
|
||||
address = (uint8_t *)(uintptr_t)shell_strtolong(args, &next);
|
||||
if(next == args) {
|
||||
shell_output_str(&poke_command, "usage 1", "");
|
||||
PROCESS_EXIT();
|
||||
|
@ -106,7 +106,7 @@ PROCESS_THREAD(shell_peek_process, ev, data)
|
|||
PROCESS_EXIT();
|
||||
}
|
||||
|
||||
address = (uint8_t *)(int)shell_strtolong(args, &next);
|
||||
address = (uint8_t *)(uintptr_t)shell_strtolong(args, &next);
|
||||
if(next == args) {
|
||||
shell_output_str(&peek_command, "usage 1", "");
|
||||
PROCESS_EXIT();
|
||||
|
|
Loading…
Reference in a new issue