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

Unified Diff: src/handles.cc

Issue 600136: Fix regression in cctest/test-log/EquivalenceOfLoggingAndTraversal (Closed)
Patch Set: Created 10 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.cc
diff --git a/src/handles.cc b/src/handles.cc
index 2186c516ab1b19076d860dcf3e49c6e34658d581..ad366c3761d25b39a0d2b60baa5676e8bcae5fed 100644
--- a/src/handles.cc
+++ b/src/handles.cc
@@ -489,7 +489,7 @@ int GetScriptLineNumber(Handle<Script> script, int code_pos) {
if (!line_ends_len)
return -1;
- if ((Smi::cast(line_ends_array->get(0)))->value() > code_pos)
+ if ((Smi::cast(line_ends_array->get(0)))->value() >= code_pos)
return script->line_offset()->value();
int left = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698