mirror of
https://github.com/openssl/openssl.git
synced 2025-03-01 19:28:10 +08:00
Use the NLIMBS macro rather than try and calculate the number of limbs
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/5105)
This commit is contained in:
parent
bd74eae1be
commit
7114a5a17a
@ -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];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user