mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
update []
This commit is contained in:
@@ -67,7 +67,7 @@ pub fn (d mut Digest) write(p_ []byte) int {
|
||||
d.nx = 0
|
||||
}
|
||||
if n >= p.len {
|
||||
p = []byte
|
||||
p = []
|
||||
} else {
|
||||
p = p[n..]
|
||||
}
|
||||
@@ -76,7 +76,7 @@ pub fn (d mut Digest) write(p_ []byte) int {
|
||||
n := p.len &~ (block_size - 1)
|
||||
block(mut d, p[..n])
|
||||
if n >= p.len {
|
||||
p = []byte
|
||||
p = []
|
||||
} else {
|
||||
p = p[n..]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user