diff options
author | Ryan <ry@tinyclouds.org> | 2009-07-31 14:36:48 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-07-31 14:36:48 +0200 |
commit | 2ebd6921510f9efbf1ef7eb6988ccecac25ee988 (patch) | |
tree | 796b2b414a20bd2e6b4b43323ea149894115a8c3 /deps/v8/src/interpreter-irregexp.cc | |
parent | 5373c6869a8410e9a00771be09bc74cd17e9c843 (diff) | |
download | node-new-2ebd6921510f9efbf1ef7eb6988ccecac25ee988.tar.gz |
Upgrade V8 to 1.3.1
Diffstat (limited to 'deps/v8/src/interpreter-irregexp.cc')
-rw-r--r-- | deps/v8/src/interpreter-irregexp.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/deps/v8/src/interpreter-irregexp.cc b/deps/v8/src/interpreter-irregexp.cc index 0a8ae8ccea..ae914d39df 100644 --- a/deps/v8/src/interpreter-irregexp.cc +++ b/deps/v8/src/interpreter-irregexp.cc @@ -51,9 +51,11 @@ static bool BackRefMatchesNoCase(int from, unibrow::uchar old_char = subject[from++]; unibrow::uchar new_char = subject[current++]; if (old_char == new_char) continue; - interp_canonicalize.get(old_char, '\0', &old_char); - interp_canonicalize.get(new_char, '\0', &new_char); - if (old_char != new_char) { + unibrow::uchar old_string[1] = { old_char }; + unibrow::uchar new_string[1] = { new_char }; + interp_canonicalize.get(old_char, '\0', old_string); + interp_canonicalize.get(new_char, '\0', new_string); + if (old_string[0] != new_string[0]) { return false; } } |