diff options
author | Lei Zhang <thestig@chromium.org> | 2018-09-20 16:04:06 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-20 16:04:06 +0000 |
commit | 263da7f3b44ae13345f47a6d9658b49c994bbdac (patch) | |
tree | b79b10db0a20d867efb1e5a6466e7f8eb11d7b07 /core | |
parent | 1605351382dbaa84cbf5affedf1f3b89897da793 (diff) | |
download | pdfium-263da7f3b44ae13345f47a6d9658b49c994bbdac.tar.xz |
Change CFX_FixedBufGrow to take a size_t.
Thanks to Qihoo 360 Vulcan Team for pointing this out.
Change-Id: Ib6dd77307b3759e54168127dc0e17aa42698d852
Reviewed-on: https://pdfium-review.googlesource.com/42830
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/fxcrt/cfx_fixedbufgrow.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/cfx_fixedbufgrow.h b/core/fxcrt/cfx_fixedbufgrow.h index 55db8b21d1..558347ed59 100644 --- a/core/fxcrt/cfx_fixedbufgrow.h +++ b/core/fxcrt/cfx_fixedbufgrow.h @@ -11,10 +11,10 @@ #include "core/fxcrt/fx_memory.h" -template <class DataType, int FixedSize> +template <class DataType, size_t FixedSize> class CFX_FixedBufGrow { public: - explicit CFX_FixedBufGrow(int data_size) { + explicit CFX_FixedBufGrow(size_t data_size) { if (data_size > FixedSize) { m_pGrowData.reset(FX_Alloc(DataType, data_size)); return; |