From 81bf67ba4f6734d947b65cd5712411585959cad6 Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Sat, 14 Sep 2019 05:45:04 +1000 Subject: [PATCH] hash.crc32: change *Crc32 to &Crc32 --- vlib/hash/crc32/crc32.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/hash/crc32/crc32.v b/vlib/hash/crc32/crc32.v index e5ec4d84b8..2eee62f873 100644 --- a/vlib/hash/crc32/crc32.v +++ b/vlib/hash/crc32/crc32.v @@ -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