Skip to content

Commit 9ae634f

Browse files
taltenbachutzig
authored andcommitted
bootutil: Fix signed/unsigned comparison in boot_read_enc_key
When MCUBOOT_SWAP_SAVE_ENCTLV is enabled, a comparison between a signed and an unsigned integer is made in boot_read_enc_key. This might cause a warning to be emitted at compile-time. Signed-off-by: Thomas Altenbach <[email protected]>
1 parent 8be24f8 commit 9ae634f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/src/bootutil_misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ boot_read_enc_key(const struct flash_area *fap, uint8_t slot, struct boot_status
268268
{
269269
uint32_t off;
270270
#if MCUBOOT_SWAP_SAVE_ENCTLV
271-
int i;
271+
uint32_t i;
272272
#endif
273273
int rc;
274274

0 commit comments

Comments
 (0)