sha512: remove unnecessary cast warnings

pull/3539/head^2
toman222 2020-01-23 21:07:16 +01:00 committed by Alexander Medvednikov
parent f3f50349b2
commit 0a93d3b714
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ fn block_generic(dig mut Digest, p_ []byte) {
for p.len >= Chunk {
for i := 0; i < 16; i++ {
j := i * 8
w[i] = u64(u64(u64(p[j])<<56) | u64(u64(p[j + 1])<<48) | u64(u64(p[j + 2])<<40) | u64(u64(p[j + 3])<<32) | u64(u64(p[j + 4])<<24) | u64(u64(p[j + 5])<<16) | u64(u64(p[j + 6])<<8) | u64(p[j + 7]))
w[i] = ((u64(p[j])<<56) | (u64(p[j + 1])<<48) | (u64(p[j + 2])<<40) | (u64(p[j + 3])<<32) | (u64(p[j + 4])<<24) | (u64(p[j + 5])<<16) | (u64(p[j + 6])<<8) | (p[j + 7]))
}
for i := 16; i < 80; i++ {
v1 := w[i - 2]