Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: pylib/gyp/mac_tool.py

Issue 1887703004: Fix header map nextPowerOf2 method. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Add comment Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/ios/framework/framework.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pylib/gyp/mac_tool.py
diff --git a/pylib/gyp/mac_tool.py b/pylib/gyp/mac_tool.py
index 32aba14fe7600eb85da739158ea1663d351ac2e5..b430b18c94b9f4be785fd4f90acd5e609c87fb06 100755
--- a/pylib/gyp/mac_tool.py
+++ b/pylib/gyp/mac_tool.py
@@ -639,7 +639,7 @@ class MacTool(object):
return data
def NextGreaterPowerOf2(x):
- return 2**(x-1).bit_length()
+ return 2**(x).bit_length()
def WriteHmap(output_name, filelist):
"""Generates a header map based on |filelist|.
« no previous file with comments | « no previous file | test/ios/framework/framework.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698