diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-05-06 15:58:32 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-05-06 15:58:32 -0700 |
commit | 9ea57a43faeab85a9a431e987ff4c3ba670083a0 (patch) | |
tree | b6d62fc00b6b5999c03ce06738ea286f3cdc9854 /core/src/fxcrt/fx_basic_utf.cpp | |
parent | ad2a822ce5c320c61510ffdc309f766ab1056ef5 (diff) | |
download | pdfium-9ea57a43faeab85a9a431e987ff4c3ba670083a0.tar.xz |
Remove FX_STRSIZE casts, use safe conversions
BUG=pdfium:153
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1124043003
Diffstat (limited to 'core/src/fxcrt/fx_basic_utf.cpp')
-rw-r--r-- | core/src/fxcrt/fx_basic_utf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxcrt/fx_basic_utf.cpp b/core/src/fxcrt/fx_basic_utf.cpp index 02c7d98a1b..f52b83efda 100644 --- a/core/src/fxcrt/fx_basic_utf.cpp +++ b/core/src/fxcrt/fx_basic_utf.cpp @@ -80,7 +80,7 @@ CFX_ByteString FX_UTF8Encode(FX_LPCWSTR pwsStr, FX_STRSIZE len) { FXSYS_assert(pwsStr != NULL); if (len < 0) { - len = (FX_STRSIZE)FXSYS_wcslen(pwsStr); + len = FXSYS_wcslen(pwsStr); } CFX_UTF8Encoder encoder; while (len -- > 0) { |