From 30f143c4bd7ab2b312be2982b93b5c090fbb0e97 Mon Sep 17 00:00:00 2001 From: Todd Neal Date: Mon, 27 Apr 2020 19:46:26 -0500 Subject: fix 32 bit build Discovered while building on a Raspberry Pi --- plumbing/object/rename.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plumbing') diff --git a/plumbing/object/rename.go b/plumbing/object/rename.go index 48665eb..9ce41b3 100644 --- a/plumbing/object/rename.go +++ b/plumbing/object/rename.go @@ -713,7 +713,7 @@ func (i *similarityIndex) common(dst *similarityIndex) uint64 { } func (i *similarityIndex) add(key int, cnt uint64) error { - key = int(uint32(key*0x9e370001) >> 1) + key = int(uint32(key)*0x9e370001 >> 1) j := i.slot(key) for { -- cgit