Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Issue 201091: Make implicit float -> int/long conversions explicit.... (Closed)

Created:
11 years, 3 months ago by Jacob Mandelson
Modified:
9 years, 7 months ago
CC:
jacob_mandelson.org, chromium-reviews_googlegroups.com, darin (slow to review), brettw, jam, Ben Goodger (Google), Paul Godavari
Visibility:
Public.

Description

Remove code doing a no-op due to float -> int rounding. Make implicit float -> int/long conversions explicit. (Implicit float -> int conversions can be found by compiling with -Wconversion in gcc [versions 4.1.1 and 4.2.4, and surely many others].) BUG=none TEST=app_unittests & base_unittests

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -42 lines) Patch
M base/process_util_linux.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/gtk/back_forward_button_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/bookmark_bar_gtk.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/gtk/bookmark_manager_gtk.cc View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/gtk/browser_window_gtk.cc View 4 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/gtk/download_item_gtk.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/gtk/slide_animator_gtk.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/gtk/tab_contents_drag_source.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/gtk/tabs/dragged_tab_gtk.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/gtk/tabs/tab_gtk.cc View 1 2 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/renderer/print_web_view_helper_linux.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Jacob Mandelson
(Split off from CL 171028) Ran tests on Linux. Passed except for ConditionVariableTest.LargeFastTaskTest, which also ...
11 years, 3 months ago (2009-09-11 05:24:08 UTC) #1
Paweł Hajdan Jr.
Do we really want to patch DTOA code? More patches there = potentially more maintenance ...
11 years, 3 months ago (2009-09-11 15:50:42 UTC) #2
Jacob Mandelson
The dtoa changes are because of compiler warnings, yes. There's the use of a character ...
11 years, 3 months ago (2009-09-11 16:12:37 UTC) #3
Paweł Hajdan Jr.
I think we should then *disable* the warnings for DTOA code (see a relevant .gyp ...
11 years, 3 months ago (2009-09-11 16:19:03 UTC) #4
Jacob Mandelson
All right, dtoa changes removed from the patchset.
11 years, 3 months ago (2009-09-11 16:25:34 UTC) #5
Paweł Hajdan Jr.
Code changes LGTM, let's wait for Mark's comments too. Please put the rationale from your ...
11 years, 3 months ago (2009-09-11 16:29:20 UTC) #6
Mark Mentovai
LG http://codereview.chromium.org/201091/diff/4001/5009 File chrome/browser/gtk/bookmark_bar_gtk.cc (right): http://codereview.chromium.org/201091/diff/4001/5009#newcode483 Line 483: gint height = static_cast<gint>(animation->GetCurrentValue() * More readable? ...
11 years, 3 months ago (2009-09-11 16:35:15 UTC) #7
Jacob Mandelson
> http://codereview.chromium.org/201091/diff/4001/5009#newcode483 > Line 483: gint height = static_cast<gint>(animation->GetCurrentValue() * > More readable? Done. > ...
11 years, 3 months ago (2009-09-11 19:49:44 UTC) #8
Jacob Mandelson
> Please put the rationale from your previous comments into the commit message, as > ...
11 years, 3 months ago (2009-09-11 20:07:52 UTC) #9
Mark Mentovai
FYI. On older x86-family processors, a static cast from a floating-point number to an integer ...
11 years, 3 months ago (2009-09-11 20:13:23 UTC) #10
Jacob Mandelson
> On older x86-family processors, a static cast from a floating-point number to an > ...
11 years, 3 months ago (2009-09-11 20:25:16 UTC) #11
Paweł Hajdan Jr.
Landed in http://codereview.chromium.org/200122, thanks for the patch.
11 years, 3 months ago (2009-09-14 18:54:38 UTC) #12
Jacob Mandelson
11 years, 3 months ago (2009-09-14 19:17:24 UTC) #13
On 2009/09/14 18:54:38, Paweł Hajdan Jr. wrote:
> Landed in http://codereview.chromium.org/200122, thanks for the patch.

Thanks for your assistance!

Powered by Google App Engine
This is Rietveld 408576698