1
0
Fork 0
mirror of https://git.code.sf.net/p/zint/code synced 2025-05-30 06:45:28 -04:00

back-merged

This commit is contained in:
oxygenic 2017-06-13 21:05:35 +02:00 committed by Robin Stuart
parent 6413351fd6
commit d8330f5d96
13 changed files with 37 additions and 34 deletions
backend

View file

@ -59,7 +59,7 @@ char itoc(const int source) {
void bin_append(const int arg, const int length, char *binary) {
int i;
int start;
int posn = strlen(binary);
size_t posn = strlen(binary);
start = 0x01 << (length - 1);
@ -228,7 +228,7 @@ int is_extendable(const int symbology) {
return 0;
}
int istwodigits(const unsigned char source[], const int position) {
int istwodigits(const unsigned char source[], const size_t position) {
if ((source[position] >= '0') && (source[position] <= '9')) {
if ((source[position + 1] >= '0') && (source[position + 1] <= '9')) {
return 1;