Commit 3ccbc5ff authored by Andy Polyakov's avatar Andy Polyakov
Browse files

ec/curve448/curve448.c: fix undefined behaviour sanitizer failure.

parent 55a7f77d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -579,7 +579,7 @@ static int recode_wnaf(struct smvt_control *control,
            assert(position >= 0);
            if (odd & (1 << (table_bits + 1)))
                delta -= (1 << (table_bits + 1));
            current -= delta << pos;
            current -= delta * (1 << pos);
            control[position].power = pos + 16 * (w - 1);
            control[position].addend = delta;
            position--;