Correct ISBN13 check digit

ISBN-13 check digit now correctly identifies '0'.
Thanks to Kévin Sailly.
This commit is contained in:
Robin Stuart 2011-05-09 09:02:01 +01:00
parent 74047434b5
commit 5fe18d0ffa

View File

@ -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);
}