From 5b64c58e9b36e3c2f02db0aceceae34a8e93e934 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sat, 12 Apr 2014 11:28:24 -0700 Subject: CompilerFailure: don't mutate compiler hashes Fixes #28357. --- Library/Homebrew/compilers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/compilers.rb') diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 7473f12a7..d545606af 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -61,7 +61,7 @@ class CompilerFailure # Non-Apple compilers are in the format fails_with compiler => version if compiler.is_a? Hash # currently the only compiler for this case is GCC - _, @major_version = compiler.shift + _, @major_version = compiler.first @compiler = 'gcc-' + @major_version else @compiler = compiler -- cgit v1.2.3