diff --git a/src/inspector/v8-debugger-agent-impl.cc b/src/inspector/v8-debugger-agent-impl.cc index 74d4235fa7..2af1d43efe 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(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(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(scriptRef->source().length()), std::move(stackTrace)); } if (scriptURL.isEmpty() || !success) return; diff --git a/test/inspector/task-runner.cc b/test/inspector/task-runner.cc index a92f2d0aad..577ab306c7 100644 --- a/test/inspector/task-runner.cc +++ b/test/inspector/task-runner.cc @@ -78,9 +78,10 @@ v8::Local TaskRunner::GetContext(int context_group_id) { } int TaskRunner::GetContextGroupId(v8::Local context) { - return reinterpret_cast( - context->GetAlignedPointerFromEmbedderData(kContextGroupIdIndex)) / - 2; + return static_cast( + reinterpret_cast( + context->GetAlignedPointerFromEmbedderData(kContextGroupIdIndex)) / + 2); } void TaskRunner::Run() {