"src/vscode:/vscode.git/clone" did not exist on "ee1cc9019081cc900fd38aedf7aa74dde4f985af"
Commit 85e33b78 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

fix a cppcheck error

parent badacbcc
......@@ -953,15 +953,9 @@ struct onnx_parser
literal l_out{};
l_val.visit([&](auto val) {
// this #ifdef is to avoid a false cppcheck error, will remove later
// when a newer version of cppcheck is used
#ifdef CPPCHECK
using type = float;
#else
using type = std::remove_cv_t<typename decltype(val)::value_type>;
#endif
using val_type = std::remove_cv_t<typename decltype(val)::value_type>;
// l_val contains only one element
std::vector<type> out_vec(s.elements(), *val.begin());
std::vector<val_type> out_vec(s.elements(), *val.begin());
l_out = literal(s, out_vec);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment