Skip to content

Commit

Permalink
fixed const_indexing issue on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
debris committed Dec 3, 2015
1 parent 70990c0 commit 591d611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description = "An implementation of the FIPS-202-defined SHA-3 and SHAKE functio
homepage = "https://github.com/debris/tiny-keccak"
license = "CC0-1.0"
name = "tiny-keccak"
version = "1.0.0"
version = "1.0.1"
authors = ["debris <marek.kotewicz@gmail.com>"]
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ pub fn keccakf(a: &mut [u64]) {
x = 0;
REPEAT24!({
b[0] = a[PI[x]];
a[PI[x]] = ROL!(t, RHO[x]);
let rhox = RHO[x]; // 'const_indexing' issue
a[PI[x]] = ROL!(t, rhox);
t = b[0];
x += 1;
});
Expand Down

0 comments on commit 591d611

Please sign in to comment.