diff --git a/src/symbols_file.cpp b/src/symbols_file.cpp index dbb565e..093f984 100644 --- a/src/symbols_file.cpp +++ b/src/symbols_file.cpp @@ -994,7 +994,7 @@ public: return false; } else { HLOGD("kernel notes size: %zu", notes.size()); - buildId_ = ElfGetBuildId(reinterpret_cast(notes.data()), notes.size()); + buildId_ = ElfGetBuildId(reinterpret_cast(notes.data()), notes.size()); } const auto startTime = std::chrono::steady_clock::now(); @@ -1068,7 +1068,7 @@ private: std::string sysFile = "/sys/module/" + module_ + "/notes/.note.gnu.build-id"; std::string buildIdRaw = ReadFileToString(sysFile); if (!buildIdRaw.empty()) { - buildId_ = ElfGetBuildId(reinterpret_cast(buildIdRaw.data()), buildIdRaw.size()); + buildId_ = ElfGetBuildId(reinterpret_cast(buildIdRaw.data()), buildIdRaw.size()); HLOGD("kerne module %s(%s) build id %s", module_.c_str(), filePath_.c_str(), buildId_.c_str()); return buildId_.empty() ? false : true; diff --git a/src/virtual_runtime.cpp b/src/virtual_runtime.cpp index 6f7d01e..aa1a0ba 100644 --- a/src/virtual_runtime.cpp +++ b/src/virtual_runtime.cpp @@ -646,7 +646,7 @@ void VirtualRuntime::UpdateFromPerfData(const std::vector &sym // use give us path ,we must reload it. symbolsFile->LoadSymbols(); } - symbolsFile->id_ = symbolsFiles_.size(); + symbolsFile->id_ = static_cast(symbolsFiles_.size()); symbolsFiles_.emplace_back(std::move(symbolsFile)); } }