mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
#209 AZTEC_RUNE casts
This commit is contained in:
parent
f62a678d0f
commit
e198a40b3a
@ -100,7 +100,7 @@ static char get_next_mode(char encode_mode[], const int src_len, int i) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int az_bin_append_posn(const int arg, const int length, char *binary, int bin_posn) {
|
static int az_bin_append_posn(const int arg, const int length, char *binary, const int bin_posn) {
|
||||||
|
|
||||||
if (bin_posn + length > AZTEC_BIN_CAPACITY) {
|
if (bin_posn + length > AZTEC_BIN_CAPACITY) {
|
||||||
return 0; /* Fail */
|
return 0; /* Fail */
|
||||||
@ -1507,8 +1507,8 @@ INTERNAL int aztec_runes(struct zint_symbol *symbol, unsigned char source[], int
|
|||||||
|
|
||||||
bp = bin_append_posn(input_value, 8, binary_string, bp);
|
bp = bin_append_posn(input_value, 8, binary_string, bp);
|
||||||
|
|
||||||
data_codewords[0] = input_value >> 4;
|
data_codewords[0] = (unsigned char) (input_value >> 4);
|
||||||
data_codewords[1] = input_value & 0xF;
|
data_codewords[1] = (unsigned char) (input_value & 0xF);
|
||||||
|
|
||||||
rs_init_gf(&rs, 0x13);
|
rs_init_gf(&rs, 0x13);
|
||||||
rs_init_code(&rs, 5, 1);
|
rs_init_code(&rs, 5, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user