diff --git a/passpal.rb b/passpal.rb index f8b75ea..3c2066b 100644 --- a/passpal.rb +++ b/passpal.rb @@ -171,7 +171,7 @@ def analyze(word) end def report output = [] - while (@words.length > 0 && output.length < $top) + while (@words.length > 0 && output.length < $top.to_i) max_value = 0 max_key = nil @words.each do |key, value|