mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-17 09:57:02 +00:00
MAXICODE: add minimal encoding by Bue Jensen (BWIPP PR #279),
around 20% slower than current but much better; numerous other fiddlings reedsol: reverse result in `rs_*encode*()` routines & adjust clients appropriately (may replace later with something faster) test suite: cater for MAXICODE SCM better; add assert & dataset totals BWIPP: update to latest gen_gs1_lint.php: restrict line length to 118 for func calls
This commit is contained in:
@@ -886,12 +886,12 @@ static void gm_add_ecc(const char binary[], const int data_posn, const int layer
|
||||
rs_init_code(&rs, ecc_size, 1);
|
||||
rs_encode(&rs, data_size, data_block, ecc_block);
|
||||
|
||||
/* Correct error correction data but in reverse order */
|
||||
/* Add error correction data */
|
||||
for (j = 0; j < data_size; j++) {
|
||||
block[j] = data_block[j];
|
||||
}
|
||||
for (j = 0; j < ecc_size; j++) {
|
||||
block[(j + data_size)] = ecc_block[ecc_size - j - 1];
|
||||
block[j + data_size] = ecc_block[j];
|
||||
}
|
||||
|
||||
for (j = 0; j < n2; j++) {
|
||||
|
||||
Reference in New Issue
Block a user