diff options
Diffstat (limited to 'src/target/image.c')
-rw-r--r-- | src/target/image.c | 2 |
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 */ |