commit | 218830ab8fd70e77308f1462ff6eb759e4021db3 | [log] [tgz] |
---|---|---|
author | Tom Sepez <tsepez@chromium.org> | Fri Nov 05 18:30:38 2021 +0000 |
committer | Pdfium LUCI CQ <pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 05 18:30:38 2021 +0000 |
tree | f73680faa54ff1d5b66ea328e286accdac19ab10 | |
parent | 3a191736f899d483d4b389ed0f39c3d7e178ccab [diff] |
Use size_t for lengths in StringTo(). As would be flagged by -Wshorten-64-to-32 Change-Id: Idcd889acb0103514d555560b75399a8ba69cb902 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/86895 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fxcrt/fx_string.cpp b/core/fxcrt/fx_string.cpp index 172b196..9b86abb 100644 --- a/core/fxcrt/fx_string.cpp +++ b/core/fxcrt/fx_string.cpp
@@ -49,9 +49,9 @@ if (strc.IsEmpty()) return 0; - int cc = 0; bool bNegative = false; - int len = strc.GetLength(); + size_t cc = 0; + size_t len = strc.GetLength(); if (strc[0] == '+') { cc++; } else if (strc[0] == '-') {