RESOLVED FIXED 91635
[chromium] Fix style for numeric literals in chromium unit test code
https://bugs.webkit.org/show_bug.cgi?id=91635
Summary [chromium] Fix style for numeric literals in chromium unit test code
Shawn Singh
Reported 2012-07-18 10:16:14 PDT
Patch coming in a moment, which updates unit test code to be consistent with WebKit style for numeric literals. Specifically, I tried to find most places where extra ".0" or "f" suffixes were being used and remove them. A couple of places I did not modify: - division denominators should be left alone, so that they do not accidentally do integer division. - Color(...) constructors should be left alone, since there are overloaded integer and floating point constructors.
Attachments
Patch (67.30 KB, patch)
2012-07-18 10:23 PDT, Shawn Singh
no flags
Shawn Singh
Comment 1 2012-07-18 10:23:56 PDT
Adrienne Walker
Comment 2 2012-07-18 10:25:01 PDT
Comment on attachment 153038 [details] Patch R=me. Thanks for the cleanup.
WebKit Review Bot
Comment 3 2012-07-18 11:26:10 PDT
Comment on attachment 153038 [details] Patch Clearing flags on attachment: 153038 Committed r122993: <http://trac.webkit.org/changeset/122993>
WebKit Review Bot
Comment 4 2012-07-18 11:26:14 PDT
All reviewed patches have been landed. Closing bug.
Shawn Singh
Comment 5 2012-07-18 11:59:11 PDT
And just post-conclusion for future reference sqrt(2) is ambiguous and causes build errors, so it should remain sqrt(2.0) Thanks to Tony Chang for gardening that - http://trac.webkit.org/changeset/122997
Note You need to log in before you can comment on or make changes to this bug.