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>
v6.x
Anna Henningsen 9 years ago
committed by Evan Lucas
parent
commit
27c17ce9d1
  1. 2
      src/string_search.h

2
src/string_search.h

@ -252,7 +252,7 @@ inline const void* MemrchrFill(const void* haystack, uint8_t needle,
// `subject`. Does not check that the whole pattern matches.
template <typename Char>
inline size_t FindFirstCharacter(Vector<const Char> pattern,
Vector<const Char> subject, size_t index) {
Vector<const Char> subject, size_t index) {
const Char pattern_first_char = pattern[0];
const size_t max_n = (subject.length() - pattern.length() + 1);

Loading…
Cancel
Save