Browse Source

src: fix FindFirstCharacter argument alignment

PR-URL: https://github.com/nodejs/node/pull/6511
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
v4.x
Anna Henningsen 9 years ago
committed by Myles Borins
parent
commit
2fac15ba94
  1. 3
      src/string_search.h

3
src/string_search.h

@ -276,7 +276,8 @@ inline uint8_t GetHighestValueByte(uint8_t character) { return character; }
template <typename PatternChar, typename SubjectChar>
inline size_t FindFirstCharacter(Vector<const PatternChar> pattern,
Vector<const SubjectChar> subject, size_t index) {
Vector<const SubjectChar> subject,
size_t index) {
const PatternChar pattern_first_char = pattern[0];
const size_t max_n = (subject.length() - pattern.length() + 1);

Loading…
Cancel
Save