diff options
Diffstat (limited to 'plumbing/object')
-rw-r--r-- | plumbing/object/change_test.go | 2 | ||||
-rw-r--r-- | plumbing/object/rename.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/object/change_test.go b/plumbing/object/change_test.go index 2c1fe37..0e97e4d 100644 --- a/plumbing/object/change_test.go +++ b/plumbing/object/change_test.go @@ -397,7 +397,7 @@ func (s *ChangeSuite) TestCancel(c *C) { // On that commit, the "examples/clone" tree is // 6efca3ff41cab651332f9ebc0c96bb26be809615 // - // and the "examples/colone/main.go" is + // and the "examples/clone/main.go" is // f95dc8f7923add1a8b9f72ecb1e8db1402de601a path := "examples/clone/main.go" 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 { |