Skip to content

Commit

Permalink
These should be integers
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Jul 21, 2013
1 parent 867f60b commit 8dd5a91
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Library/Homebrew/macos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def locate tool
end
end


def dev_tools_path
@dev_tools_path ||= \
if File.exist? MacOS::CLT::STANDALONE_PKG_PATH and
Expand Down Expand Up @@ -110,7 +109,7 @@ def default_compiler
def gcc_40_build_version
@gcc_40_build_version ||=
if (path = locate("gcc-4.0"))
%x{#{path} --version}[/build (\d{4,})/, 1]
%x{#{path} --version}[/build (\d{4,})/, 1].to_i
end
end
alias_method :gcc_4_0_build_version, :gcc_40_build_version
Expand Down Expand Up @@ -142,7 +141,7 @@ def clang_version
def clang_build_version
@clang_build_version ||=
if (path = locate("clang"))
%x{#{path} --version}[%r[clang-(\d{2,})], 1]
%x{#{path} --version}[%r[clang-(\d{2,})], 1].to_i
end
end

Expand Down

0 comments on commit 8dd5a91

Please sign in to comment.