Skip to content

Commit e08ef84

Browse files
committed
Added parenthesis around macro
F/436
1 parent 1596b3b commit e08ef84

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libwolfboot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ int wolfBoot_initialize_encryption(void)
107107
(2 * WOLFBOOT_SECTOR_SIZE)))
108108
/* MAGIC (4B) + PART_FLAG (1B) + (N_SECTORS / 2) */
109109
#define START_FLAGS_OFFSET (ENCRYPT_TMP_SECRET_OFFSET - TRAILER_OVERHEAD)
110-
#define SECTOR_FLAGS_SIZE WOLFBOOT_SECTOR_SIZE - (4 + 1 + \
111-
ENCRYPT_KEY_SIZE + ENCRYPT_NONCE_SIZE)
110+
#define SECTOR_FLAGS_SIZE (WOLFBOOT_SECTOR_SIZE - (4 + 1 + \
111+
ENCRYPT_KEY_SIZE + ENCRYPT_NONCE_SIZE))
112112
/* MAGIC (4B) + PART_FLAG (1B) + ENCRYPT_KEY_SIZE + ENCRYPT_NONCE_SIZE */
113113
#else
114114
#define ENCRYPT_TMP_SECRET_OFFSET (WOLFBOOT_PARTITION_SIZE - (TRAILER_SKIP))

0 commit comments

Comments
 (0)