Cast pointer to uintptr_t type to avoid compiler warnings

This commit is contained in:
Adam Dunkels 2015-10-04 22:53:23 +02:00 committed by Simon Duquennoy
parent bd54fe83f8
commit 160d792399

View file

@ -71,7 +71,7 @@ PROCESS_THREAD(shell_poke_process, ev, data)
PROCESS_EXIT(); PROCESS_EXIT();
} }
address = (uint8_t *)(int)shell_strtolong(args, &next); address = (uint8_t *)(uintptr_t)shell_strtolong(args, &next);
if(next == args) { if(next == args) {
shell_output_str(&poke_command, "usage 1", ""); shell_output_str(&poke_command, "usage 1", "");
PROCESS_EXIT(); PROCESS_EXIT();
@ -106,7 +106,7 @@ PROCESS_THREAD(shell_peek_process, ev, data)
PROCESS_EXIT(); PROCESS_EXIT();
} }
address = (uint8_t *)(int)shell_strtolong(args, &next); address = (uint8_t *)(uintptr_t)shell_strtolong(args, &next);
if(next == args) { if(next == args) {
shell_output_str(&peek_command, "usage 1", ""); shell_output_str(&peek_command, "usage 1", "");
PROCESS_EXIT(); PROCESS_EXIT();