diff options
Diffstat (limited to 'xfa/src/fxbarcode')
-rw-r--r-- | xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp b/xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp index 8ee21ea97e..54bd0b6c6a 100644 --- a/xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp +++ b/xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp @@ -294,11 +294,11 @@ void CBC_PDF417HighLevelEncoder::encodeNumeric(CFX_WideString msg, FX_INT32 star {
FX_INT32 idx = 0;
BigInteger num900 = 900;
- while (idx < count - 1) {
+ while (idx < count) {
CFX_WideString tmp;
FX_INT32 len = 44 < count - idx ? 44 : count - idx;
CFX_ByteString part = ((FX_WCHAR)'1' + msg.Mid(startpos + idx, len)).UTF8Encode();
- BigInteger bigint = stringToBigInteger(FX_LPCSTR(part));
+ BigInteger bigint = stringToBigInteger(part.c_str());
do {
FX_INT32 c = (bigint % num900).toInt();
tmp += (FX_WCHAR)(c);
|