Skip to content

Commit af62051

Browse files
committed
wolfssl/wolfcrypt/types.h: fix bugprone-macro-parentheses in smallstack WC_ALLOC_VAR().
1 parent 3676dc0 commit af62051

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfssl/wolfcrypt/types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,8 +627,8 @@ typedef struct w64wrapper {
627627
VAR_TYPE* VAR_NAME = NULL
628628
#define WC_ALLOC_VAR(VAR_NAME, VAR_TYPE, VAR_SIZE, HEAP) \
629629
do { \
630-
VAR_NAME = (VAR_TYPE*)XMALLOC(sizeof(VAR_TYPE) * (VAR_SIZE), (HEAP), DYNAMIC_TYPE_WOLF_BIGINT);\
631-
if (VAR_NAME == NULL) { \
630+
(VAR_NAME) = (VAR_TYPE*)XMALLOC(sizeof(VAR_TYPE) * (VAR_SIZE), (HEAP), DYNAMIC_TYPE_WOLF_BIGINT); \
631+
if ((VAR_NAME) == NULL) { \
632632
WC_ALLOC_DO_ON_FAILURE(); \
633633
} \
634634
} while (0)

0 commit comments

Comments
 (0)