summaryrefslogtreecommitdiff
path: root/fxbarcode/oned/BC_OnedEANChecksum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/oned/BC_OnedEANChecksum.cpp')
-rw-r--r--fxbarcode/oned/BC_OnedEANChecksum.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxbarcode/oned/BC_OnedEANChecksum.cpp b/fxbarcode/oned/BC_OnedEANChecksum.cpp
index 64aa1c5f43..b290c62926 100644
--- a/fxbarcode/oned/BC_OnedEANChecksum.cpp
+++ b/fxbarcode/oned/BC_OnedEANChecksum.cpp
@@ -9,8 +9,8 @@
int32_t EANCalcChecksum(const ByteString& contents) {
int32_t odd = 0;
int32_t even = 0;
- FX_STRSIZE parity = 1;
- for (FX_STRSIZE i = contents.GetLength(); i > 0; i--) {
+ size_t parity = 1;
+ for (size_t i = contents.GetLength(); i > 0; i--) {
if (parity % 2)
odd += FXSYS_DecimalCharToInt(contents[i - 1]);
else