未验证 提交 6bf26ef1 编写于 作者: W wangchaochaohu 提交者: GitHub

fix warning mac compiler (#24138)

上级 29e1968d
......@@ -631,7 +631,7 @@ void AnalyzeEvent(
std::string cname = event_items[k].name;
bool condition = cname.length() > fname.length() &&
cname.rfind(fname, 0) == 0 &&
!cname.rfind(grad_name, 0) == 0 &&
cname.rfind(grad_name, 0) != 0 &&
(cname[fname.length()] == '/' &&
cname.rfind('/') == fname.length());
if (condition) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册