summaryrefslogtreecommitdiff
path: root/src/target/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/image.c')
-rw-r--r--src/target/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/image.c b/src/target/image.c
index 286a2213..d6042e46 100644
--- a/src/target/image.c
+++ b/src/target/image.c
@@ -1022,7 +1022,7 @@ int image_calculate_checksum(uint8_t* buffer, uint32_t nbytes, uint32_t* checksu
{
run=32768;
}
- nbytes-=run;
+ nbytes -= run;
while (run--)
{
/* as per gdb */