diff --git a/backend/dmatrix.c b/backend/dmatrix.c index 26f32165..45b3f7ce 100644 --- a/backend/dmatrix.c +++ b/backend/dmatrix.c @@ -1212,7 +1212,7 @@ int matrix89(struct zint_symbol *symbol, unsigned char source[]) symbol_size = (symbol->option_2 - 1); } - if(((symbol->option_2 - 1) < symbol_size) && ((symbol->option_2 - 1) != 0)) { + if(((symbol->option_2 - 1) < symbol_size) && (symbol->option_2 != 0)) { strcpy(symbol->errtxt, "Unable to fit data in specified symbol size"); error_number = WARN_INVALID_OPTION; }