1
0
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:
joe-conigliaro 2019-09-14 05:45:04 +10:00 committed by Alexander Medvednikov
parent 3dc4abddec
commit 81bf67ba4f

View File

@ -50,7 +50,7 @@ pub fn(c &Crc32) checksum(b []byte) u32 {
}
// pass the polinomial to use
pub fn new(poly int) *Crc32 {
pub fn new(poly int) &Crc32 {
mut c := &Crc32{}
c.generate_table(poly)
return c