This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 6b13693 Bug in hash init code
6b13693 is described below
commit 6b13693b1e586bf5bbe3d39f1894105cafc2ebca
Author: Sebb <[email protected]>
AuthorDate: Tue Nov 24 16:09:12 2020 +0000
Bug in hash init code
---
tools/namemap.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/namemap.rb b/tools/namemap.rb
index 2136a64..52043b0 100644
--- a/tools/namemap.rb
+++ b/tools/namemap.rb
@@ -237,7 +237,7 @@ module NameMap
# @return histogram of how many aliases committers list
def committer_dups(io)
dups = {}
- histogram = Hash.new{|k,v| v = 0}
+ histogram = Hash.new {|k, v| k[v] = 0}
cids, cmails = hash_committers(get_committers(io))
cids.each do |_id, hsh|
histogram[hsh[MAIL].length] += 1