fixed warnings under Windows
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Thu, 25 Oct 2012 09:28:30 +0000 (13:28 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Thu, 25 Oct 2012 09:28:30 +0000 (13:28 +0400)
modules/video/src/tvl1flow.cpp

index 7b1490b..2f8034a 100644 (file)
@@ -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<float>(hypot(u1xRow[x], u1yRow[x]));
+                const float g2 = static_cast<float>(hypot(u2xRow[x], u2yRow[x]));
 
                 const float ng1  = 1.0f + taut * g1;
                 const float ng2  = 1.0f + taut * g2;