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

Issue 12684005: libgtk2ui: cast gdk_color components to fix compilation under gcc 4.7.2 (Closed)

Created:
7 years, 9 months ago by Bobby Powers
Modified:
7 years, 9 months ago
Reviewers:
Elliot Glaysher, sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

libgtk2ui: cast gdk_color components to fix compilation under gcc 4.7.2 I was getting this error before this patch: error: narrowing conversion of ‘(((color >> 16) & 255u) * 257u)’ from ‘SkColor {aka unsigned int}’ to ‘guint16 {aka short unsigned int}’ inside { } is ill-formed in C++11 [-Werror=narrowing] BUG=130810 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188351

Patch Set 1 #

Total comments: 1

Patch Set 2 : use c++-style static_cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/skia_utils_gtk2.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Bobby Powers
I'm starting to play with Aura on my F18 box, and needed this build fix. ...
7 years, 9 months ago (2013-03-14 16:06:11 UTC) #1
Elliot Glaysher
https://codereview.chromium.org/12684005/diff/1/chrome/browser/ui/libgtk2ui/skia_utils_gtk2.cc File chrome/browser/ui/libgtk2ui/skia_utils_gtk2.cc (right): https://codereview.chromium.org/12684005/diff/1/chrome/browser/ui/libgtk2ui/skia_utils_gtk2.cc#newcode25 chrome/browser/ui/libgtk2ui/skia_utils_gtk2.cc:25: (guint16)(SkColorGetR(color) * kSkiaToGDKMultiplier), Please use C++ static_cast<> instead of ...
7 years, 9 months ago (2013-03-14 16:52:49 UTC) #2
Bobby Powers
Ah, yes. I'm still somewhat stuck in my C roots. PTAL.
7 years, 9 months ago (2013-03-14 17:01:34 UTC) #3
Elliot Glaysher
lgtm
7 years, 9 months ago (2013-03-14 17:02:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bobbypowers@gmail.com/12684005/5001
7 years, 9 months ago (2013-03-14 17:05:42 UTC) #5
commit-bot: I haz the power
Presubmit check for 12684005-5001 failed and returned exit status 1. INFO:root:Found 2 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-14 17:05:46 UTC) #6
Elliot Glaysher
sky, could you please stamp this patch? I'll get an OWNERS file in the libgtk2ui ...
7 years, 9 months ago (2013-03-14 17:07:36 UTC) #7
sky
LGTM
7 years, 9 months ago (2013-03-14 19:46:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bobbypowers@gmail.com/12684005/5001
7 years, 9 months ago (2013-03-14 19:54:17 UTC) #9
commit-bot: I haz the power
Change committed as 188351
7 years, 9 months ago (2013-03-15 12:00:30 UTC) #10
Bobby Powers
7 years, 9 months ago (2013-03-15 13:09:00 UTC) #11
Message was sent while issue was closed.
On 2013/03/15 12:00:30, I haz the power (commit-bot) wrote:
> Change committed as 188351

awesome, thank you two!

Powered by Google App Engine
This is Rietveld 408576698