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>
process-exit-stdio-flushing
Anna Henningsen 9 years ago
parent
commit
bfe645d1f4
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  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