mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-27 21:44:13 -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 = 10 - check;
|
||||
if(check == 10) check = 0;
|
||||
return itoc(check);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue