summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript')
-rw-r--r--fpdfsdk/javascript/PublicMethods.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/PublicMethods.cpp b/fpdfsdk/javascript/PublicMethods.cpp
index 759fd91a4d..2efcacdde9 100644
--- a/fpdfsdk/javascript/PublicMethods.cpp
+++ b/fpdfsdk/javascript/PublicMethods.cpp
@@ -238,7 +238,7 @@ int CJS_PublicMethods::ParseStringInteger(const CFX_WideString& str,
if (!std::iswdigit(c))
break;
- nRet = nRet * 10 + FXSYS_toDecimalDigit(c);
+ nRet = nRet * 10 + FXSYS_DecimalCharToInt(c);
nSkip = i - nStart + 1;
if (nSkip >= nMaxStep)
break;