vlib: change [0;n] to [0].repeat(n)

This commit is contained in:
joe-conigliaro 2019-09-15 19:26:05 +10:00 committed by Alexander Medvednikov
parent 602e472b8a
commit f077fbd32d
18 changed files with 41 additions and 40 deletions

View file

@ -97,7 +97,7 @@ const(
fn block_generic(dig mut Digest, p_ []byte) {
mut p := p_
mut w := [u64(0); 80]
mut w := [u64(0)].repeat(80)
mut h0 := dig.h[0]
mut h1 := dig.h[1]