mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-29 06:15:23 -04:00
Correct ISBN13 check digit
ISBN-13 check digit now correctly identifies '0'. Thanks to Kévin Sailly.
This commit is contained in:
parent
74047434b5
commit
5fe18d0ffa
1 changed files with 1 additions and 0 deletions
|
@ -378,6 +378,7 @@ char isbn13_check(unsigned char source[]) /* For ISBN(13) only */
|
||||||
|
|
||||||
check = sum % 10;
|
check = sum % 10;
|
||||||
check = 10 - check;
|
check = 10 - check;
|
||||||
|
if(check == 10) check = 0;
|
||||||
return itoc(check);
|
return itoc(check);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue