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

Unified Diff: src/inspector/v8-debugger-agent-impl.cc

Issue 2773723002: [inspector] fixed compilation with gyp (Closed)
Patch Set: Created 3 years, 9 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 | test/inspector/task-runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/v8-debugger-agent-impl.cc
diff --git a/src/inspector/v8-debugger-agent-impl.cc b/src/inspector/v8-debugger-agent-impl.cc
index 74d4235fa7b68eacbcf1f0c1dd0482053b9f47ef..2af1d43efe1d1ff240be691e408709508bbf9eb8 100644
--- a/src/inspector/v8-debugger-agent-impl.cc
+++ b/src/inspector/v8-debugger-agent-impl.cc
@@ -166,7 +166,8 @@ void adjustBreakpointLocation(const V8DebuggerScript& script,
bestMatch = nextMatch - offset < offset - prevMatch ? nextMatch : prevMatch;
}
bestMatch += searchRegionOffset;
- v8::debug::Location hintPosition = script.location(bestMatch);
+ v8::debug::Location hintPosition =
+ script.location(static_cast<int>(bestMatch));
if (hintPosition.IsEmpty()) return;
breakpoint->line_number = hintPosition.GetLineNumber();
breakpoint->column_number = hintPosition.GetColumnNumber();
@@ -1096,14 +1097,15 @@ void V8DebuggerAgentImpl::didParseSource(
scriptRef->endLine(), scriptRef->endColumn(), contextId,
scriptRef->hash(), std::move(executionContextAuxDataParam),
isLiveEditParam, std::move(sourceMapURLParam), hasSourceURLParam,
- isModuleParam, scriptRef->source().length(), std::move(stackTrace));
+ isModuleParam, static_cast<int>(scriptRef->source().length()),
+ std::move(stackTrace));
} else {
m_frontend.scriptFailedToParse(
scriptId, scriptURL, scriptRef->startLine(), scriptRef->startColumn(),
scriptRef->endLine(), scriptRef->endColumn(), contextId,
scriptRef->hash(), std::move(executionContextAuxDataParam),
std::move(sourceMapURLParam), hasSourceURLParam, isModuleParam,
- scriptRef->source().length(), std::move(stackTrace));
+ static_cast<int>(scriptRef->source().length()), std::move(stackTrace));
}
if (scriptURL.isEmpty() || !success) return;
« no previous file with comments | « no previous file | test/inspector/task-runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698