mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
ULTRA: #191 suppress clang-tidy 11.0.0 warning
This commit is contained in:
parent
107d64b5de
commit
344ec06723
@ -205,13 +205,14 @@ static void ultra_gf283(short DataSize, short EccSize, int Message[]) {
|
||||
|
||||
static int ultra_find_fragment(const unsigned char source[], int source_length, int position) {
|
||||
int retval = -1;
|
||||
int j, k, latch;
|
||||
int j, k, latch, fraglen;
|
||||
|
||||
for (j = 0; j < 27; j++) {
|
||||
latch = 0;
|
||||
if ((position + (int) strlen(fragment[j])) <= source_length) {
|
||||
fraglen = strlen(fragment[j]);
|
||||
if ((position + fraglen) <= source_length) {
|
||||
latch = 1;
|
||||
for (k = 0; k < (int) strlen(fragment[j]); k++) {
|
||||
for (k = 0; k < fraglen; k++) {
|
||||
if (source[position + k] != fragment[j][k]) {
|
||||
latch = 0;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user