Skip to content

Commit

Permalink
fix(core): resolve static_assert error on macos compiler
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
cepetr committed Oct 2, 2024
1 parent 6376ea9 commit 6096b7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/embed/lib/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
#include "image.h"
#include "model.h"

_Static_assert(VENDOR_HEADER_MAX_SIZE + IMAGE_HEADER_SIZE <= IMAGE_CHUNK_SIZE);
_Static_assert(VENDOR_HEADER_MAX_SIZE + IMAGE_HEADER_SIZE <= IMAGE_CHUNK_SIZE,
"The size of the firmware headers must be less than or equal to "
"IMAGE_CHUNK_SIZE");

const uint8_t BOOTLOADER_KEY_M = 2;
const uint8_t BOOTLOADER_KEY_N = 3;
Expand Down

0 comments on commit 6096b7c

Please sign in to comment.