Skip to content

Commit

Permalink
It will got ambitious error in some compilers such as arm_hardfloat i…
Browse files Browse the repository at this point in the history
…f we don't cast int64 to Json::Value::Int64 when append json array.
  • Loading branch information
Lifzho committed Feb 28, 2024
1 parent 7b8e59b commit ef2b759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collectors/perf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ bool PerfCollector::postprocess(const std::vector<int64_t>& timing)
{
clocks_sec.push_back(iter.tv_sec);
clocks_nsec.push_back(iter.tv_nsec);
clockValue[sec_name.c_str()].append(iter.tv_sec);
clockValue[nsec_name.c_str()].append(iter.tv_nsec);
clockValue[sec_name.c_str()].append((Json::Value::Int64)iter.tv_sec);
clockValue[nsec_name.c_str()].append((Json::Value::Int64)iter.tv_nsec);
}
mCustomResult["thread_data"].append(clockValue);
}
Expand Down

0 comments on commit ef2b759

Please sign in to comment.