| Index: fpdfsdk/src/javascript/util.cpp
|
| diff --git a/fpdfsdk/src/javascript/util.cpp b/fpdfsdk/src/javascript/util.cpp
|
| index 4bc28cd03a85230d73556787286ed0f185c7a015..a796d1489f01ffb3943ba4b809148003cefb99c3 100644
|
| --- a/fpdfsdk/src/javascript/util.cpp
|
| +++ b/fpdfsdk/src/javascript/util.cpp
|
| @@ -529,8 +529,8 @@ int64_t FX_atoi64(const char* nptr) {
|
| total = 0;
|
|
|
| while (isdigit(c)) {
|
| - total = 10 * total + FXSYS_toDecimalDigit(c); /* accumulate digit */
|
| - c = (int)(unsigned char)*nptr++; /* get next char */
|
| + total = 10 * total + FXSYS_toDecimalDigit(static_cast<FX_WCHAR>(c));
|
| + c = (int)(unsigned char)*nptr++;
|
| }
|
|
|
| return sign == '-' ? -total : total;
|
|
|