зеркало из https://github.com/mozilla/pjs.git
Bug 681036 - Fix c++0x initializer list error found by clang. r=karlt
The C++11 draft says about initializer lists: "If a narrowing conversion (see below) is required to convert any of the arguments, the program is ill-formed." and "A narrowing conversion is an implicit conversion... from an integer type or unscoped enumeration type to an integer type that cannot represent all the values of the original type, except where the source is a constant expression..." --HG-- extra : rebase_source : c4e5fcc0442050c4d9788c4a260249437acfaea6
This commit is contained in:
Родитель
f31ff44f8e
Коммит
93dde26bd5
|
@ -541,7 +541,8 @@ static GdkRegion* computeClipRegion(InstanceData* instanceData)
|
|||
return 0;
|
||||
}
|
||||
|
||||
GdkRectangle windowRect = { 0, 0, width, height };
|
||||
GdkRectangle windowRect = { 0, 0, static_cast<gint>(width),
|
||||
static_cast<gint>(height) };
|
||||
GdkRegion* windowRgn = gdk_region_rectangle(&windowRect);
|
||||
if (!windowRgn) {
|
||||
gdk_region_destroy(region);
|
||||
|
|
Загрузка…
Ссылка в новой задаче