]> sjero.net Git - wget/blobdiff - src/utils.c
[svn] Move extern declarations to .h files.
[wget] / src / utils.c
index 54e2644a845dd1a90f2725935e5fbc35c95b9cf8..fbf9b47f7ff26f04daa28048a7e0847314467871 100644 (file)
@@ -1169,7 +1169,7 @@ free_keys_and_values (struct hash_table *ht)
    the function.
 
    In locales that don't set a thousand separator (such as the "C"
-   locale), this forces it to be ",".  Wget 1.10 is only using
+   locale), this forces it to be ",".  We are now only showing
    thousand separators in one place, so this shouldn't be a problem in
    practice.  */
 
@@ -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",
@@ -1480,6 +1477,7 @@ number_to_string (char *buffer, wgint number)
 
 #undef PR
 #undef W
+#undef SPRINTF_WGINT
 #undef DIGITS_1
 #undef DIGITS_2
 #undef DIGITS_3