Fix warning about implicit cast.

This commit is contained in:
Gareth McMullin 2013-06-17 15:57:13 +12:00
parent 8c877d6dfa
commit 3caaa28fa1
1 changed files with 3 additions and 1 deletions

View File

@ -452,7 +452,9 @@ static int lpc43xx_flash_write(struct target_s *target, uint32_t dest, const uin
}
/* copy buffer into target memory */
target_mem_write_words(target, IAP_RAM_BASE + offsetof(struct flash_program, data), flash_pgm.data, sizeof(flash_pgm.data));
target_mem_write_words(target,
IAP_RAM_BASE + offsetof(struct flash_program, data),
(uint32_t*)flash_pgm.data, sizeof(flash_pgm.data));
/* set the destination address and program */
flash_pgm.p.command = IAP_CMD_PROGRAM;