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 |