aboutsummaryrefslogtreecommitdiff
path: root/src/lpc11xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpc11xx.c')
-rw-r--r--src/lpc11xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc11xx.c b/src/lpc11xx.c
index f7d72fa..670bba8 100644
--- a/src/lpc11xx.c
+++ b/src/lpc11xx.c
@@ -116,7 +116,7 @@ lpc11xx_probe(struct target_s *target)
static void
lpc11x_iap_call(struct target_s *target, struct flash_param *param, unsigned param_len)
{
- uint32_t regs[target->regs_size / 4];
+ uint32_t regs[target->regs_size / sizeof(uint32_t)];
/* fill out the remainder of the parameters and copy the structure to RAM */
param->opcodes[0] = 0xbe00;