From d822ecbd8e07735907f125b460120ff50a7ff2fb Mon Sep 17 00:00:00 2001 From: Andrew Weintraub Date: Fri, 8 Dec 2017 22:49:56 +0000 Subject: 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 Commit-Queue: Lei Zhang --- core/fxge/dib/cfx_imagetransformer.cpp | 2 +- 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); -- cgit v1.2.3