| author | |
| committer | |
| log | ce02115365759a9b7f9ccfdd8577bee20da54b84 |
| tree | 939956d2d830cf2a311bcffa9fc16169c36bff5b |
| parent | d5bd19d471198c0175f2f8875b262b9e13756c25 |
resolves https://codeberg.org/ziglang/zig/issues/360542 files changed, 3 insertions(+), 3 deletions(-)
lib/std/crypto/benchmark.zig+2-2| ... | ... | @@ -454,8 +454,8 @@ fn benchmarkPwhash( |
| 454 | 454 | |
| 455 | 455 | const strHash = ty.strHash; |
| 456 | 456 | const strHashFnInfo = @typeInfo(@TypeOf(strHash)).@"fn"; |
| 457 | const needs_io = strHashFnInfo.params.len == 4 and strHashFnInfo.params[3].type == std.Io; | |
| 458 | const needs_salt = strHashFnInfo.params.len == 4 and strHashFnInfo.params[3].type != std.Io; | |
| 457 | const needs_io = strHashFnInfo.param_types.len == 4 and strHashFnInfo.param_types[3].? == std.Io; | |
| 458 | const needs_salt = strHashFnInfo.param_types.len == 4 and strHashFnInfo.param_types[3].? != std.Io; | |
| 459 | 459 | const salt: [16]u8 = @splat(0); |
| 460 | 460 | |
| 461 | 461 | const start = benchTime(io); |
lib/std/crypto/kangarootwelve.zig+1-1| ... | ... | @@ -885,7 +885,7 @@ fn ktMultiThreaded( |
| 885 | 885 | |
| 886 | 886 | var select_outstanding: usize = 0; |
| 887 | 887 | var select: Select = .init(io, select_buf); |
| 888 | defer select.cancel(); | |
| 888 | defer select.cancelDiscard(); | |
| 889 | 889 | var batches_spawned: usize = 0; |
| 890 | 890 | var next_to_process: usize = 0; |
| 891 | 891 |