diff options
| author | Jack Nagel | 2013-07-21 07:56:30 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-07-21 07:56:30 -0500 |
| commit | 13df53166a24366206d6599efb964b92fcac24b4 (patch) | |
| tree | 085656bfb0e1ad76523e4ed8d5f5c72b116173fc | |
| parent | 5acaa3374b970d45877a852b8125a8179694b5e6 (diff) | |
| download | brew-13df53166a24366206d6599efb964b92fcac24b4.tar.bz2 | |
These should be integers
| -rw-r--r-- | Library/Homebrew/macos.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index 5e371d83d..1483e42a6 100644 --- a/Library/Homebrew/macos.rb +++ b/Library/Homebrew/macos.rb @@ -39,7 +39,6 @@ module MacOS extend self end end - def dev_tools_path @dev_tools_path ||= \ if File.exist? MacOS::CLT::STANDALONE_PKG_PATH and @@ -110,7 +109,7 @@ module MacOS extend self 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 @@ -142,7 +141,7 @@ module MacOS extend self 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 |
