diff options
author | Andrew Weintraub <asweintraub@google.com> | 2017-12-08 22:49:56 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-08 22:49:56 +0000 |
commit | d822ecbd8e07735907f125b460120ff50a7ff2fb (patch) | |
tree | e801774cc21c9c0b4fd7ef26e2ff1151c9a1204d /core/fxge | |
parent | f8f22c7ac7f3d4b922f40f67e910114e55b187b0 (diff) | |
download | pdfium-d822ecbd8e07735907f125b460120ff50a7ff2fb.tar.xz |
Fix an LLVM error caused by assigning a uint32_t to an int without a cast
Bug:
Change-Id: I394fb3c6df95d5170302731fd33ef523a38f070c
Reviewed-on: https://pdfium-review.googlesource.com/20630
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge')
-rw-r--r-- | core/fxge/dib/cfx_imagetransformer.cpp | 2 | ||||
-rw-r--r-- | core/fxge/dib/cfx_imagetransformer.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/fxge/dib/cfx_imagetransformer.cpp b/core/fxge/dib/cfx_imagetransformer.cpp index 565d38b2e2..8e01127b00 100644 --- a/core/fxge/dib/cfx_imagetransformer.cpp +++ b/core/fxge/dib/cfx_imagetransformer.cpp @@ -45,7 +45,7 @@ uint8_t bilinear_interpol(const uint8_t* buf, } uint8_t bicubic_interpol(const uint8_t* buf, - int pitch, + uint32_t pitch, const int pos_pixel[], const int u_w[], const int v_w[], diff --git a/core/fxge/dib/cfx_imagetransformer.h b/core/fxge/dib/cfx_imagetransformer.h index bf5e7dcfd4..d13ce3f130 100644 --- a/core/fxge/dib/cfx_imagetransformer.h +++ b/core/fxge/dib/cfx_imagetransformer.h @@ -64,7 +64,7 @@ class CFX_ImageTransformer { const CFX_DIBitmap* bitmap; const CFX_Matrix& matrix; const uint8_t* buf; - int pitch; + uint32_t pitch; }; void CalcMask(const CalcData& cdata); |