From 7114a5a17a1231e5607e94d67c7b4e4a0ce0b115 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Wed, 31 Jan 2018 13:53:45 +0000 Subject: [PATCH 1/1] Use the NLIMBS macro rather than try and calculate the number of limbs Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/5105) --- crypto/ec/curve448/arch_32/f_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ec/curve448/arch_32/f_impl.h b/crypto/ec/curve448/arch_32/f_impl.h index 60b5347691..78971e8576 100644 --- a/crypto/ec/curve448/arch_32/f_impl.h +++ b/crypto/ec/curve448/arch_32/f_impl.h @@ -20,7 +20,7 @@ void gf_add_RAW(gf out, const gf a, const gf b) { unsigned int i; - for (i = 0; i < sizeof(*out) / sizeof(out->limb[0]); i++) { + for (i = 0; i < NLIMBS; i++) { out->limb[i] = a->limb[i] + b->limb[i]; } } -- 2.34.1