diff --git a/modules/dnn/src/dnn.cpp b/modules/dnn/src/dnn.cpp index 0afa8d5a27..027b59160a 100644 --- a/modules/dnn/src/dnn.cpp +++ b/modules/dnn/src/dnn.cpp @@ -3074,7 +3074,7 @@ void Net::setHalideScheduler(const String& scheduler) int64 Net::getPerfProfile(std::vector& timings) { timings = std::vector(impl->layersTimings.begin() + 1, impl->layersTimings.end()); - int64 total = std::accumulate(timings.begin(), timings.end(), 0); + int64 total = (int64)std::accumulate(timings.begin(), timings.end(), 0.0); return total; }