From 6eb7e0c27fcbc53d58e2a112ef10e902d54b6a7b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 11 Jun 2014 21:34:06 -0500 Subject: Eliminate an uninitialized ivar warning --- Library/Homebrew/compilers.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/compilers.rb') diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 7afa7a12e..27da77d9b 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -65,7 +65,8 @@ class CompilerFailure # so fails_with :gcc => '4.8' simply marks all 4.8 releases incompatible @version ||= @major_version + '.999' else - @version = (@version || 9999).to_i + @version ||= 9999 + @version = @version.to_i end end -- cgit v1.2.3