mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 695243 - Cast the 32-bit integers to 16-bit ones explicitly in order to fix clang builds; r=benwa
This is fine since the dimensions of a plugin cannot be more than USHRT_MAX.
This commit is contained in:
parent
751c6e9bf5
commit
5231396c42
@ -474,7 +474,8 @@ CAUpdate(NPP npp, uint32_t timerID) {
|
||||
void
|
||||
PluginInstanceChild::Invalidate()
|
||||
{
|
||||
NPRect windowRect = {0, 0, mWindow.height, mWindow.width};
|
||||
NPRect windowRect = {0, 0, uint16_t(mWindow.height),
|
||||
uint16_t(mWindow.width)};
|
||||
|
||||
InvalidateRect(&windowRect);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user