From bff8c8e9a9bedc9672a0fc3531fdca8368e2d1bb Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Thu, 3 May 2012 15:49:27 -0700 Subject: [PATCH] ENV.rb: Always return integers from make_jobs When referencing `Hardware.processor_count`, `ENV.make_jobs` will return an integer. If referencing the environment variable `HOMEBREW_MAKE_JOBS`, it returned a string. Now, the function always returns an integer. Fixes #12033. --- Library/Homebrew/extend/ENV.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 4eeba6b982ca..898da62376cd 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -432,7 +432,7 @@ def compiler def make_jobs # '-j' requires a positive integral argument if self['HOMEBREW_MAKE_JOBS'].to_i > 0 - self['HOMEBREW_MAKE_JOBS'] + self['HOMEBREW_MAKE_JOBS'].to_i else Hardware.processor_count end