summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/PublicMethods.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-03-03 17:12:58 -0500
committerDan Sinclair <dsinclair@chromium.org>2016-03-03 17:12:58 -0500
commit1c91537c9f9669246713a5be628493ae2fc4899a (patch)
treeb40c06fde5dd0410f4eb7a0734f11758aa6c5d37 /fpdfsdk/src/javascript/PublicMethods.cpp
parent44beca7313284a60c21b4973d42f993b8c248ec9 (diff)
downloadpdfium-1c91537c9f9669246713a5be628493ae2fc4899a.tar.xz
Combine StrToInt methods.
This Cl combines the two StrToInt implementations. In doing so I had to add some more overrides to toDecimalDigit() and add a isDecimalDigit(). BUG=pdfium:423 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1757283002 .
Diffstat (limited to 'fpdfsdk/src/javascript/PublicMethods.cpp')
-rw-r--r--fpdfsdk/src/javascript/PublicMethods.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/javascript/PublicMethods.cpp b/fpdfsdk/src/javascript/PublicMethods.cpp
index f510d51d64..f228072b35 100644
--- a/fpdfsdk/src/javascript/PublicMethods.cpp
+++ b/fpdfsdk/src/javascript/PublicMethods.cpp
@@ -242,7 +242,7 @@ int CJS_PublicMethods::ParseStringInteger(const CFX_WideString& string,
if (!FXSYS_iswdigit(c))
break;
- nRet = nRet * 10 + FXSYS_toDecimalDigitWide(c);
+ nRet = nRet * 10 + FXSYS_toDecimalDigit(c);
nSkip = i - nStart + 1;
if (nSkip >= nMaxStep)
break;