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

Unified Diff: build/gn_helpers.py

Issue 1844823002: Fix gn_helpers' parsing of bools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | build/gn_helpers_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/gn_helpers.py
diff --git a/build/gn_helpers.py b/build/gn_helpers.py
index dc0820a62bcb12d3e3c131f463bc65893c95f58e..f1037720bbf878ac8cbaa56f0896aaec04ea5a62 100644
--- a/build/gn_helpers.py
+++ b/build/gn_helpers.py
@@ -280,7 +280,7 @@ class GNValueParser(object):
returns true. Otherwise, returns false and the current position is
unchanged."""
end = self.cur + len(constant)
- if end >= len(self.input):
+ if end > len(self.input):
return False # Not enough room.
if self.input[self.cur:end] == constant:
self.cur = end
« no previous file with comments | « no previous file | build/gn_helpers_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698