diff --git a/modules/dnn/src/layers/permute_layer.cpp b/modules/dnn/src/layers/permute_layer.cpp index e7f554ebba..f66c72d21b 100644 --- a/modules/dnn/src/layers/permute_layer.cpp +++ b/modules/dnn/src/layers/permute_layer.cpp @@ -383,9 +383,9 @@ public: std::shared_ptr ieLayer(new InferenceEngine::CNNLayer(lp)); CV_Assert(!_order.empty()); - ieLayer->params["order"] = format("%d", _order[0]); + ieLayer->params["order"] = format("%zu", _order[0]); for (int i = 1; i < _order.size(); ++i) - ieLayer->params["order"] += format(",%d", _order[i]); + ieLayer->params["order"] += format(",%zu", _order[i]); return Ptr(new InfEngineBackendNode(ieLayer)); #endif // HAVE_INF_ENGINE