| Index: xfa/fxbarcode/oned/BC_OnedUPCAWriter.cpp
|
| diff --git a/xfa/fxbarcode/oned/BC_OnedUPCAWriter.cpp b/xfa/fxbarcode/oned/BC_OnedUPCAWriter.cpp
|
| index 21ccafc20c7573e4be6f1dd4e880e683cd3a178d..943384d55cb8a5a0e90c4bca6d1f439b09afb6f3 100644
|
| --- a/xfa/fxbarcode/oned/BC_OnedUPCAWriter.cpp
|
| +++ b/xfa/fxbarcode/oned/BC_OnedUPCAWriter.cpp
|
| @@ -70,9 +70,9 @@ int32_t CBC_OnedUPCAWriter::CalcChecksum(const CFX_ByteString& contents) {
|
| int32_t j = 1;
|
| for (int32_t i = contents.GetLength() - 1; i >= 0; i--) {
|
| if (j % 2) {
|
| - odd += FXSYS_atoi(contents.Mid(i, 1));
|
| + odd += FXSYS_atoi(contents.Mid(i, 1).c_str());
|
| } else {
|
| - even += FXSYS_atoi(contents.Mid(i, 1));
|
| + even += FXSYS_atoi(contents.Mid(i, 1).c_str());
|
| }
|
| j++;
|
| }
|
|
|