aboutsummaryrefslogtreecommitdiff
path: root/src/target/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/image.c')
-rw-r--r--src/target/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/image.c b/src/target/image.c
index 9175c20..6864e4e 100644
--- a/src/target/image.c
+++ b/src/target/image.c
@@ -194,7 +194,7 @@ static int image_ihex_buffer_complete_inner(struct image *image,
}
while (count-- > 0) {
- unsigned value;
+ unsigned int value;
sscanf(&lpsz_line[bytes_read], "%2x", &value);
ihex->buffer[cooked_bytes] = (uint8_t)value;
cal_checksum += (uint8_t)ihex->buffer[cooked_bytes];
@@ -863,7 +863,7 @@ static int image_mot_buffer_complete_inner(struct image *image,
}
while (count-- > 0) {
- unsigned value;
+ unsigned int value;
sscanf(&lpsz_line[bytes_read], "%2x", &value);
mot->buffer[cooked_bytes] = (uint8_t)value;
cal_checksum += (uint8_t)mot->buffer[cooked_bytes];