]> rtime.felk.cvut.cz Git - opencv.git/blobdiff - opencv/3rdparty/lapack/slamch.c
fixed MSVC 2008 compile errors and warnings
[opencv.git] / opencv / 3rdparty / lapack / slamch.c
index 1eab1f19f381e6cd45eb6fbbded4bbda9a4528c6..78626fe08dfb1359868a07512066400141cbc933 100644 (file)
@@ -78,7 +78,7 @@ slamch_(char *cmach) {
         /* Use SMALL plus a bit, to avoid the possibility of rounding causing overflow
          when computing  1/sfmin. */
         sfmin = FLT_MIN;
-        small = 2. / FLT_MAX;
+        small = (float)(2. / FLT_MAX);
         if (small <= sfmin) small = sfmin * (1 + eps);
         return small;
     } else if ('U' == ch || 'u' == ch) {