From 0a7828dac9de5fbba9d0fdc62a2a8ff5d85c5040 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Mon, 20 Dec 2021 21:37:33 -0500 Subject: [PATCH] Fix for sized int hashes --- generic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic.go b/generic.go index 814b969..394a6e7 100644 --- a/generic.go +++ b/generic.go @@ -91,10 +91,10 @@ func HashInt64(i int64) uint64 { func HashInt32(i int32) uint64 { return hash(uint64(i)) } -func HashInt16(i int32) uint64 { +func HashInt16(i int16) uint64 { return hash(uint64(i)) } -func HashInt8(i int32) uint64 { +func HashInt8(i int8) uint64 { return hash(uint64(i)) } func HashInt(i int) uint64 {