Skip to content

Commit 21f0a79

Browse files
pkgwcatamorphism
authored andcommitted
---
yaml --- r: 39655 b: refs/heads/incoming c: ae69c2f h: refs/heads/master i: 39653: ce0208d 39651: 708e4d7 39647: cccb807 v: v3
1 parent aa079a3 commit 21f0a79

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9-
refs/heads/incoming: 392708e3b153eb9f7cd3bf10d1658c76b49632a7
9+
refs/heads/incoming: ae69c2fc7d8996777c41455758343a99efed0f34
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libstd/sha1.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use core::vec;
3737
/// The SHA-1 interface
3838
trait Sha1 {
3939
/// Provide message input as bytes
40-
fn input((&[u8]));
40+
fn input((&[const u8]));
4141
/// Provide message input as string
4242
fn input_str((&str));
4343
/**
@@ -75,9 +75,9 @@ pub fn sha1() -> Sha1 {
7575
mut computed: bool,
7676
work_buf: @~[mut u32]};
7777

78-
fn add_input(st: &Sha1State, msg: &[u8]) {
78+
fn add_input(st: &Sha1State, msg: &[const u8]) {
7979
assert (!st.computed);
80-
for vec::each(msg) |element| {
80+
for vec::each_const(msg) |element| {
8181
st.msg_block[st.msg_block_idx] = *element;
8282
st.msg_block_idx += 1u;
8383
st.len_low += 8u32;
@@ -243,7 +243,7 @@ pub fn sha1() -> Sha1 {
243243
self.h[4] = 0xC3D2E1F0u32;
244244
self.computed = false;
245245
}
246-
fn input(msg: &[u8]) { add_input(&self, msg); }
246+
fn input(msg: &[const u8]) { add_input(&self, msg); }
247247
fn input_str(msg: &str) {
248248
let bs = str::to_bytes(msg);
249249
add_input(&self, bs);

0 commit comments

Comments
 (0)