Skip to content

Commit

Permalink
bootutil: Fix signed/unsigned comparison in boot_read_enc_key
Browse files Browse the repository at this point in the history
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 <thomas.altenbach@legrand.com>
  • Loading branch information
taltenbach authored and utzig committed Jun 20, 2024
1 parent 8be24f8 commit 9ae634f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot/bootutil/src/bootutil_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ boot_read_enc_key(const struct flash_area *fap, uint8_t slot, struct boot_status
{
uint32_t off;
#if MCUBOOT_SWAP_SAVE_ENCTLV
int i;
uint32_t i;
#endif
int rc;

Expand Down

0 comments on commit 9ae634f

Please sign in to comment.