提交 12c4e1bd 编写于 作者: A Aaron Xiao 提交者: Jiangtao Hu

HMI/Monitor: Fix compile warnings.

上级 3cd87aab
......@@ -69,7 +69,7 @@ std::string TitleCase(const std::string& origin) {
for (auto& part : parts) {
if (!part.empty()) {
// Upper case the first char.
part[0] = toupper(part[0]);
part[0] = static_cast<char>(toupper(part[0]));
}
}
......
......@@ -68,7 +68,7 @@ void ResourceMonitor::UpdateStatus(
for (const auto& disk_space : config.disk_spaces()) {
for (const auto& path : apollo::common::util::Glob(disk_space.path())) {
const auto space = boost::filesystem::space(path);
const int available_gb = space.available >> 30;
const int available_gb = static_cast<int>(space.available >> 30);
if (available_gb < disk_space.insufficient_space_error()) {
const std::string err = StrCat(
path, " has insufficient space: ",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册