mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-07 20:17:06 +00:00
DBAR_OMN/DBAR_LTD/DBAR_STK/DBAR_OMNSTK: prefix raw_segs with
implicit "01" prefix (see ZXing-C++ issue 883); allow and ignore prefixes "01", "[01]" and "(01)" if check digit given (ticket #333, props Axel Waggershauser); CODE128/PDF417: suppress some clang-tidy-20.1 warnings general: add `ZUCP()`, `ZCUCP()`, `ZCCP()` macro shorthands to cast away char pointer signedness
This commit is contained in:
@@ -1245,6 +1245,7 @@ static int pdf_enc(struct zint_symbol *symbol, struct zint_seg segs[], const int
|
||||
}
|
||||
fputs("\n\n", stdout);
|
||||
}
|
||||
assert(mclength > 0); /* Suppress clang-tidy-20.1 warning clang-analyzer-core.CallAndMessage */
|
||||
|
||||
/* 752 - Now take care of the number of CWs per row */
|
||||
|
||||
@@ -1402,6 +1403,7 @@ static int pdf_enc(struct zint_symbol *symbol, struct zint_seg segs[], const int
|
||||
c3 = cols - 1;
|
||||
|
||||
/* We now encode each row */
|
||||
assert(rows * cols <= mclength); /* Suppress clang-tidy-20.1 warning clang-analyzer-core.uninitialized.Assign */
|
||||
for (i = 0; i < rows; i++) {
|
||||
const int k = (i / 3) * 30;
|
||||
bp = 0;
|
||||
|
||||
Reference in New Issue
Block a user