mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Include last input character in look ahead test
Bug and patch by brunt, ticket #43
This commit is contained in:
parent
b003627908
commit
1155683be1
@ -341,7 +341,7 @@ static int look_ahead_test(const unsigned char inputData[], const int sourcelen,
|
|||||||
sp = position;
|
sp = position;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (sp == (sourcelen - 1)) {
|
if (sp == sourcelen) {
|
||||||
/* At the end of data ... step (k) */
|
/* At the end of data ... step (k) */
|
||||||
ascii_count = ceilf(ascii_count);
|
ascii_count = ceilf(ascii_count);
|
||||||
b256_count = ceilf(b256_count);
|
b256_count = ceilf(b256_count);
|
||||||
|
Loading…
Reference in New Issue
Block a user