]> sjero.net Git - wget/blobdiff - src/utils.c
[svn] Remove intermediary cast.
[wget] / src / utils.c
index d1b7d0b45b3d06b9178b261013f20f697184b20c..c027097fd3ca09605fcf67a7a2a1e9114ccf275e 100644 (file)
@@ -1317,10 +1317,7 @@ human_readable (HR_NUMTYPE n)
         *this* power.  */
       if ((n / 1024) < 1024 || i == countof (powers) - 1)
        {
-         /* Must cast to long first because MS VC can't directly cast
-            __int64 to double.  (This is safe because N is known to
-            be < 1024^2, so always fits into long.)  */
-         double val = (double) (long) n / 1024.0;
+         double val = n / 1024.0;
          /* Print values smaller than 10 with one decimal digits, and
             others without any decimals.  */
          snprintf (buf, sizeof (buf), "%.*f%c",