Descriptionlibgtk2ui: 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 #Messages
Total messages: 11 (0 generated)
|