mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: check (mut f Foo) syntax
This commit is contained in:
@@ -51,7 +51,7 @@ mut:
|
||||
is224 bool // mark if this digest is SHA-224
|
||||
}
|
||||
|
||||
fn (d mut Digest) reset() {
|
||||
fn (mut d Digest) reset() {
|
||||
d.h = [u32(0)].repeat(8)
|
||||
d.x = [byte(0)].repeat(chunk)
|
||||
if !d.is224 {
|
||||
@@ -92,7 +92,7 @@ pub fn new224() &Digest {
|
||||
return d
|
||||
}
|
||||
|
||||
fn (d mut Digest) write(p_ []byte) int {
|
||||
fn (mut d Digest) write(p_ []byte) int {
|
||||
mut p := p_
|
||||
nn := p.len
|
||||
d.len += u64(nn)
|
||||
@@ -141,7 +141,7 @@ fn (d &Digest) sum(b_in []byte) []byte {
|
||||
return b_out
|
||||
}
|
||||
|
||||
fn (d mut Digest) checksum() []byte {
|
||||
fn (mut d Digest) checksum() []byte {
|
||||
mut len := d.len
|
||||
// Padding. Add a 1 bit and 0 bits until 56 bytes mod 64.
|
||||
mut tmp := [byte(0)].repeat(64)
|
||||
|
||||
Reference in New Issue
Block a user