mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
hash.crc32: change *Crc32 to &Crc32
This commit is contained in:
parent
3dc4abddec
commit
81bf67ba4f
@ -50,7 +50,7 @@ pub fn(c &Crc32) checksum(b []byte) u32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// pass the polinomial to use
|
// pass the polinomial to use
|
||||||
pub fn new(poly int) *Crc32 {
|
pub fn new(poly int) &Crc32 {
|
||||||
mut c := &Crc32{}
|
mut c := &Crc32{}
|
||||||
c.generate_table(poly)
|
c.generate_table(poly)
|
||||||
return c
|
return c
|
||||||
|
Loading…
Reference in New Issue
Block a user