From 6e66a9222a071892ea9f1c9c7951fdcc85e08f7b Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sat, 11 Sep 2021 22:26:52 +0000 Subject: [PATCH] dnn(onnx): fix format specifier --- modules/dnn/src/onnx/onnx_importer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dnn/src/onnx/onnx_importer.cpp b/modules/dnn/src/onnx/onnx_importer.cpp index 955c79c0fa..2cd36dc94d 100644 --- a/modules/dnn/src/onnx/onnx_importer.cpp +++ b/modules/dnn/src/onnx/onnx_importer.cpp @@ -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.");