mirror of
https://github.com/woo-j/zint.git
synced 2024-12-26 19:21:25 +03: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
@ -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…
Reference in New Issue
Block a user