Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cast fprintf() arguments to unsigned according to format specifiers.

  • Loading branch information...
commit 0f44587d734f2b41391cd1afa077f6d5f6fa8161 1 parent b57ca80
@burjui authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/stlink-common.c
View
2  src/stlink-common.c
@@ -1484,7 +1484,7 @@ int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, unsigned
if ((off % sl->flash_pgsz) > (sl->flash_pgsz -5)) {
fprintf(stdout, "\r%3u/%u pages written",
- off/sl->flash_pgsz, len/sl->flash_pgsz);
+ (unsigned)(off/sl->flash_pgsz), (unsigned)(len/sl->flash_pgsz));
fflush(stdout);
}
Please sign in to comment.
Something went wrong with that request. Please try again.