fix build
[LibreOffice.git] / external / pdfium / build.patch.1
blobb852383ff84b68b5791abfb5cf2465b5d1397fb0
1 diff --git a/core/fxge/dib/cfx_imagetransformer.cpp b/core/fxge/dib/cfx_imagetransformer.cpp
2 index 8e01127b0..f4ce4d915 100644
3 --- a/core/fxge/dib/cfx_imagetransformer.cpp
4 +++ b/core/fxge/dib/cfx_imagetransformer.cpp
5 @@ -315,14 +315,14 @@ bool CFX_ImageTransformer::Continue(IFX_PauseIndicator* pPause) {
6    } else if (pDestMask) {
7      CalcData cdata = {
8          pDestMask.Get(), result2stretch, pSrcMaskBuf,
9 -        m_Storer.GetBitmap()->m_pAlphaMask->GetPitch(),
10 +        static_cast<uint32_t>(m_Storer.GetBitmap()->m_pAlphaMask->GetPitch()),
11      };
12      CalcMask(cdata);
13    }
15    CalcData cdata = {pTransformed.Get(), result2stretch,
16                      m_Storer.GetBitmap()->GetBuffer(),
17 -                    m_Storer.GetBitmap()->GetPitch()};
18 +                    static_cast<uint32_t>(m_Storer.GetBitmap()->GetPitch())};
19    if (m_Storer.GetBitmap()->IsAlphaMask()) {
20      CalcAlpha(cdata);
21    } else {