diff --git a/ecmascript/tooling/agent/js_backend.cpp b/ecmascript/tooling/agent/js_backend.cpp index 0a2075bf9671f71f9cca482fcf3077c9386f0410..6793c5ebe2687933d004e2da5d46c4b6186dfa51 100644 --- a/ecmascript/tooling/agent/js_backend.cpp +++ b/ecmascript/tooling/agent/js_backend.cpp @@ -185,7 +185,7 @@ bool JSBackend::StepComplete(const PtLocation &location) return true; }; auto callbackFunc = [](size_t line, [[maybe_unused]] size_t column) -> bool { - return line == SPECIAL_LINE_MARK; + return line == static_cast(SPECIAL_LINE_MARK); }; if (MatchScripts(scriptFunc, location.GetPandaFile(), ScriptMatchType::FILE_NAME) && extractor != nullptr && extractor->MatchWithOffset(callbackFunc, location.GetMethodId(), location.GetBytecodeOffset())) {