diff options
| author | Patrick Walton <[email protected]> | 2011-03-18 14:01:03 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-03-18 14:01:03 -0700 |
| commit | 0cf16e77ca5a0b9f9dfaaab4dfe253d7a9cc5cce (patch) | |
| tree | dec1d851a353d9992cf58ceaf00e7099de38ad48 /src/lib/sha1.rs | |
| parent | Add some mutable variants of vector functions to the standard library (diff) | |
| download | rust-0cf16e77ca5a0b9f9dfaaab4dfe253d7a9cc5cce.tar.xz rust-0cf16e77ca5a0b9f9dfaaab4dfe253d7a9cc5cce.zip | |
Add "mutable?" to _vec in the standard library; fix callers
Diffstat (limited to 'src/lib/sha1.rs')
| -rw-r--r-- | src/lib/sha1.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/sha1.rs b/src/lib/sha1.rs index 6b4e623b..b2294a3c 100644 --- a/src/lib/sha1.rs +++ b/src/lib/sha1.rs @@ -73,7 +73,7 @@ fn mk_sha1() -> sha1 { 0xCA62C1D6u32); let int t; // Loop counter - let vec[mutable u32] w = _vec.init_elt[mutable u32](0u32, 80u); + let vec[mutable u32] w = _vec.init_elt_mut[u32](0u32, 80u); // Initialize the first 16 words of the vector w t = 0; @@ -261,10 +261,10 @@ fn mk_sha1() -> sha1 { } } - auto st = rec(h = _vec.init_elt[mutable u32](0u32, digest_buf_len), + auto st = rec(h = _vec.init_elt_mut[u32](0u32, digest_buf_len), mutable len_low = 0u32, mutable len_high = 0u32, - msg_block = _vec.init_elt[mutable u8](0u8, msg_block_len), + msg_block = _vec.init_elt_mut[u8](0u8, msg_block_len), mutable msg_block_idx = 0u, mutable computed = false); auto sh = sha1(st); |