提交 7114a5a1 编写于 作者: M Matt Caswell

Use the NLIMBS macro rather than try and calculate the number of limbs

Reviewed-by: NBernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/5105)
上级 bd74eae1
...@@ -20,7 +20,7 @@ void gf_add_RAW(gf out, const gf a, const gf b) ...@@ -20,7 +20,7 @@ void gf_add_RAW(gf out, const gf a, const gf b)
{ {
unsigned int i; 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]; out->limb[i] = a->limb[i] + b->limb[i];
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册