aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-06-11 21:34:06 -0500
committerJack Nagel2014-06-11 21:34:09 -0500
commit6eb7e0c27fcbc53d58e2a112ef10e902d54b6a7b (patch)
treeddd44ac192d3512e8a2a500ec827b991919cf322
parentc319eb1f01c462eae8ce7e4cc29f525a464579a8 (diff)
downloadbrew-6eb7e0c27fcbc53d58e2a112ef10e902d54b6a7b.tar.bz2
Eliminate an uninitialized ivar warning
-rw-r--r--Library/Homebrew/compilers.rb3
1 files changed, 2 insertions, 1 deletions
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