From 8db5b7d7d4566820af61221cfd5fb0309f066f77 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Thu, 25 Oct 2012 13:28:30 +0400 Subject: [PATCH] fixed warnings under Windows --- modules/video/src/tvl1flow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/video/src/tvl1flow.cpp b/modules/video/src/tvl1flow.cpp index 7b1490b239..2f8034adaa 100644 --- a/modules/video/src/tvl1flow.cpp +++ b/modules/video/src/tvl1flow.cpp @@ -689,8 +689,8 @@ namespace for (int x = 0; x < u1x.cols; ++x) { - const float g1 = hypot(u1xRow[x], u1yRow[x]); - const float g2 = hypot(u2xRow[x], u2yRow[x]); + const float g1 = static_cast(hypot(u1xRow[x], u1yRow[x])); + const float g2 = static_cast(hypot(u2xRow[x], u2yRow[x])); const float ng1 = 1.0f + taut * g1; const float ng2 = 1.0f + taut * g2;