Skip to content

Commit

Permalink
Add cast to avoid warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmr committed Jul 27, 2018
1 parent 9058556 commit 44b3392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gdbserver/semihosting.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ int do_semihosting (stlink_t *sl, uint32_t r0, uint32_t r1, uint32_t *ret) {
*ret = buffer_len;
return -1;
} else {
*ret = buffer_len - read_result;
*ret = buffer_len - (uint32_t)read_result;
}
}

Expand Down

0 comments on commit 44b3392

Please sign in to comment.