diff --git a/backend/raster.c b/backend/raster.c index 1e8d650a..4a5d1fc0 100644 --- a/backend/raster.c +++ b/backend/raster.c @@ -504,7 +504,7 @@ int plot_raster_maxicode(struct zint_symbol *symbol, int rotate_angle, int data_ } } - hexagon_size = (int)scaler * 10; + hexagon_size = (int)(scaler * 10); if (!(scaled_hexagon = (char *) malloc(hexagon_size * hexagon_size))) { strcpy(symbol->errtxt, "656: Insufficient memory for pixel buffer");