diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-11-27 03:30:39 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-27 03:37:50 -0500 |
| commit | bf3ac6615051143a9ef41180cd74e88de5dd573d (patch) | |
| tree | 94571f5e6d408287928091c4dad6451d946d6434 /lib/std/crypto/sha3.zig | |
| parent | 379d547603badb2667089c85454a2e3f5ede3342 (diff) | |
| download | zig-bf3ac6615051143a9ef41180cd74e88de5dd573d.tar.gz zig-bf3ac6615051143a9ef41180cd74e88de5dd573d.zip | |
remove type coercion from array values to references
* Implements #3768. This is a sweeping breaking change that requires
many (trivial) edits to Zig source code. Array values no longer
coerced to slices; however one may use `&` to obtain a reference to
an array value, which may then be coerced to a slice.
* Adds `IrInstruction::dump`, for debugging purposes. It's useful to
call to inspect the instruction when debugging Zig IR.
* Fixes bugs with result location semantics. See the new behavior test
cases, and compile error test cases.
* Fixes bugs with `@typeInfo` not properly resolving const values.
* Behavior tests are passing but std lib tests are not yet. There
is more work to do before merging this branch.
Diffstat (limited to 'lib/std/crypto/sha3.zig')
| -rw-r--r-- | lib/std/crypto/sha3.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/crypto/sha3.zig b/lib/std/crypto/sha3.zig index d417ef07e2..d7b2fbe256 100644 --- a/lib/std/crypto/sha3.zig +++ b/lib/std/crypto/sha3.zig @@ -229,7 +229,7 @@ test "sha3-256 aligned final" { var out: [Sha3_256.digest_length]u8 = undefined; var h = Sha3_256.init(); - h.update(block); + h.update(&block); h.final(out[0..]); } @@ -300,6 +300,6 @@ test "sha3-512 aligned final" { var out: [Sha3_512.digest_length]u8 = undefined; var h = Sha3_512.init(); - h.update(block); + h.update(&block); h.final(out[0..]); } |
