Skip to content

Commit b8e054b

Browse files
committed
Don't destructure.
1 parent fe4a594 commit b8e054b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/std/crypto/ml_kem.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,9 @@ test "invNTTReductions bounds" {
636636

637637
// Invert modulo p.
638638
fn invertMod(a: anytype, p: @TypeOf(a)) @TypeOf(a) {
639-
const gcd, const x, _ = std.math.egcd(a, p);
640-
assert(gcd == 1);
641-
return x;
639+
const r = std.math.egcd(a, p);
640+
assert(r.gcd == 1);
641+
return r.bezout_coeff_1;
642642
}
643643

644644
// Reduce mod q for testing.

0 commit comments

Comments
 (0)