mirror of
https://git.code.sf.net/p/zint/code
synced 2026-05-14 18:13:53 +00:00
Check digit corrections from Massimo
This commit is contained in:
@@ -272,11 +272,11 @@ int itf14(struct zint_symbol *symbol, unsigned char source[])
|
||||
|
||||
/* Calculate the check digit - the same method used for EAN-13 */
|
||||
|
||||
for (i = h - 1; i >= 0; i--)
|
||||
for (i = 12; i >= 0; i--)
|
||||
{
|
||||
count += ctoi(localstr[i]);
|
||||
|
||||
if (!((i%2) == 0))
|
||||
if ((i%2) == 0)
|
||||
{
|
||||
count += 2 * ctoi(localstr[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user