Skip to content

Commit

Permalink
fixed immutable borrow of mutable issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockBlazeDev committed Apr 3, 2015
1 parent d2ce131 commit fc8ec5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/whirlpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ impl Digest for Whirlpool {
}

carry = x > 0xff;
let length = self.bit_length.len();
self.bit_length[length - i - 1] = (x & 0xff) as u8;
let pos = self.bit_length.len() -i - 1;
self.bit_length[pos] = (x & 0xff) as u8;
}

// process the data itself
Expand Down

0 comments on commit fc8ec5b

Please sign in to comment.