Skip to content

Commit

Permalink
dnn(onnx): fix format specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Sep 11, 2021
1 parent f605373 commit 6e66a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dnn/src/onnx/onnx_importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ void ONNXImporter::expandMid(const std::string& prefix, opencv_onnx::NodeProto&
for (size_t j = 0; j < n; j++)
{
LayerParams copyLP;
copyLP.name = format("%s/copy_%d", prefix.c_str(), j);
copyLP.name = format("%s/copy_%d", prefix.c_str(), (int)j);
copyLP.type = "Identity";
CV_Assert((layer_id.find(copyLP.name) == layer_id.end()) &&
"Couldn't copy the node: generated name already exists in the graph.");
Expand Down

0 comments on commit 6e66a92

Please sign in to comment.