summaryrefslogtreecommitdiff
path: root/core/src/fxcrt/fx_basic_utf.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-05-06 15:58:32 -0700
committerTom Sepez <tsepez@chromium.org>2015-05-06 15:58:32 -0700
commit9ea57a43faeab85a9a431e987ff4c3ba670083a0 (patch)
treeb6d62fc00b6b5999c03ce06738ea286f3cdc9854 /core/src/fxcrt/fx_basic_utf.cpp
parentad2a822ce5c320c61510ffdc309f766ab1056ef5 (diff)
downloadpdfium-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.cpp2
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) {