diff options
Diffstat (limited to 'fxjs/cfxjse_formcalc_context.cpp')
-rw-r--r-- | fxjs/cfxjse_formcalc_context.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fxjs/cfxjse_formcalc_context.cpp b/fxjs/cfxjse_formcalc_context.cpp index 34f5642844..41ec5783ff 100644 --- a/fxjs/cfxjse_formcalc_context.cpp +++ b/fxjs/cfxjse_formcalc_context.cpp @@ -780,11 +780,11 @@ bool IsIsoTimeFormat(const char* pData, ++iIndex; char strSec[kSubSecondLength + 1]; - for (int i = 0; i < kSubSecondLength; ++i) { - char c = pData[iIndex + i]; + for (int j = 0; j < kSubSecondLength; ++j) { + char c = pData[iIndex + j]; if (!std::isdigit(c)) return false; - strSec[i] = c; + strSec[j] = c; } strSec[kSubSecondLength] = '\0'; |