Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: src/runtime/runtime-regexp.cc

Issue 2422173003: [regexp] Work around gcc bug triggering -Werror=strict-overflow (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/vector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-regexp.cc
diff --git a/src/runtime/runtime-regexp.cc b/src/runtime/runtime-regexp.cc
index ac1369ddcc4c52a43a10b5447c3256429192fda2..7c0a7f25f1b9520c363d1fd934b6c90b27ff7281 100644
--- a/src/runtime/runtime-regexp.cc
+++ b/src/runtime/runtime-regexp.cc
@@ -1338,8 +1338,8 @@ MaybeHandle<String> StringReplaceNonGlobalRegExpWithFunction(
}
}
- argv[m] = handle(Smi::FromInt(index), isolate);
- argv[m + 1] = subject;
+ argv[argc - 2] = handle(Smi::FromInt(index), isolate);
+ argv[argc - 1] = subject;
Handle<Object> replacement_obj;
ASSIGN_RETURN_ON_EXCEPTION(
« no previous file with comments | « no previous file | src/vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698