diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 2bc10882e1cd71d99d7c4d3c4e898e51047f5df8..e968bf8afac1f59833a0d2a8b489346007e2089a 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -95,7 +95,7 @@ class FormulaAuditor
   end
 
   def audit_file
-    unless formula.path.stat.mode.to_s(8) == "100644"
+    unless formula.path.stat.mode == 0100644
       problem "Incorrect file permissions: chmod 644 #{formula.path}"
     end