Commit 7114a5a1 authored by Matt Caswell's avatar Matt Caswell
Browse files

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

parent bd74eae1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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];
    }
}