aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2020-04-30 22:19:26 +0200
committerGitHub <noreply@github.com>2020-04-30 22:19:26 +0200
commita0224d9db3167102ddd3d0024a43636251dacca6 (patch)
tree87377602e8acd3f0921b427056c293af5acf943e /plumbing/object
parent06dad218498f62255799d03dc6411dba481ce71b (diff)
parent30f143c4bd7ab2b312be2982b93b5c090fbb0e97 (diff)
downloadgo-git-a0224d9db3167102ddd3d0024a43636251dacca6.tar.gz
Merge pull request #44 from tzneal/mine/fix-32-bit-build
fix 32 bit build
Diffstat (limited to 'plumbing/object')
-rw-r--r--plumbing/object/rename.go2
1 files changed, 1 insertions, 1 deletions
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 {