Skip to content

Commit c7f479c

Browse files
authored
crypto/benchmark.zig: fix pointer capture of non pointer type (#14722)
1 parent 97b9fac commit c7f479c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/crypto/benchmark.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub fn benchmarkBatchSignatureVerification(comptime Signature: anytype, comptime
178178
const sig = try key_pair.sign(&msg, null);
179179

180180
var batch: [64]Signature.BatchElement = undefined;
181-
for (batch) |*element| {
181+
for (&batch) |*element| {
182182
element.* = Signature.BatchElement{ .sig = sig, .msg = &msg, .public_key = key_pair.public_key };
183183
}
184184

0 commit comments

Comments
 (0)