Chromium Code Reviews| Index: src/string-search.h |
| =================================================================== |
| --- src/string-search.h (revision 10282) |
| +++ src/string-search.h (working copy) |
| @@ -369,6 +369,9 @@ |
| shift_table[pattern_length] = 1; |
| suffix_table[pattern_length] = pattern_length + 1; |
| + if (pattern_length <= start) |
|
Vyacheslav Egorov (Chromium)
2011/12/20 14:58:54
we either put return on the same line as if or we
|
| + return; |
| + |
| // Find suffixes. |
| PatternChar last_char = pattern[pattern_length - 1]; |
| int suffix = pattern_length + 1; |