From 3eec8fd0eb8916ee97b5eb8a7b22f8f84a8916b1 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 26 Sep 2018 14:04:49 +0300 Subject: [PATCH] dnn: fix printf format warning --- modules/dnn/src/layers/permute_layer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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