Title: [277247] trunk/Source/WebCore
Revision
277247
Author
[email protected]
Date
2021-05-09 11:35:30 -0700 (Sun, 09 May 2021)

Log Message

Follow-up to: Remove uses of the String::toInt family of functions from the WebCore/platform directory
https://bugs.webkit.org/show_bug.cgi?id=225575

Reviewed by Sam Weinig.

* html/FTPDirectoryDocument.cpp:
(WebCore::processFilesizeString): Change format to "1000.0" as we discussed.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (277246 => 277247)


--- trunk/Source/WebCore/ChangeLog	2021-05-09 18:31:34 UTC (rev 277246)
+++ trunk/Source/WebCore/ChangeLog	2021-05-09 18:35:30 UTC (rev 277247)
@@ -1,5 +1,15 @@
 2021-05-09  Darin Adler  <[email protected]>
 
+        Follow-up to: Remove uses of the String::toInt family of functions from the WebCore/platform directory
+        https://bugs.webkit.org/show_bug.cgi?id=225575
+
+        Reviewed by Sam Weinig.
+
+        * html/FTPDirectoryDocument.cpp:
+        (WebCore::processFilesizeString): Change format to "1000.0" as we discussed.
+
+2021-05-09  Darin Adler  <[email protected]>
+
         Remove uses of the String::toInt family of functions from the WebCore/platform directory
         https://bugs.webkit.org/show_bug.cgi?id=225575
 

Modified: trunk/Source/WebCore/html/FTPDirectoryDocument.cpp (277246 => 277247)


--- trunk/Source/WebCore/html/FTPDirectoryDocument.cpp	2021-05-09 18:31:34 UTC (rev 277246)
+++ trunk/Source/WebCore/html/FTPDirectoryDocument.cpp	2021-05-09 18:35:30 UTC (rev 277247)
@@ -166,10 +166,10 @@
         return unknownFileSizeText();
 
     if (*bytes < 1000000)
-        return makeString(FormattedNumber::fixedWidth(*bytes / 1000., 2), " KB");
+        return makeString(FormattedNumber::fixedWidth(*bytes / 1000.0, 2), " KB");
     if (*bytes < 1000000000)
-        return makeString(FormattedNumber::fixedWidth(*bytes / 1000000., 2), " MB");
-    return makeString(FormattedNumber::fixedWidth(*bytes / 1000000000., 2), " GB");
+        return makeString(FormattedNumber::fixedWidth(*bytes / 1000000.0, 2), " MB");
+    return makeString(FormattedNumber::fixedWidth(*bytes / 1000000000.0, 2), " GB");
 }
 
 static bool wasLastDayOfMonth(int year, int month, int day)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to