Skip to content

Commit 4730b77

Browse files
authored
Merge pull request #8 from Shopify/fix-deprecation-warning
Fix Fixnum deprecation warning
2 parents 59d74a6 + 0336116 commit 4730b77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/stackprof/report.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def files
7272

7373
def add_lines(a, b)
7474
return b if a.nil?
75-
return a+b if a.is_a? Fixnum
76-
return [ a[0], a[1]+b ] if b.is_a? Fixnum
75+
return a+b if a.is_a? Integer
76+
return [ a[0], a[1]+b ] if b.is_a? Integer
7777
[ a[0]+b[0], a[1]+b[1] ]
7878
end
7979

0 commit comments

Comments
 (0)