diff options
Diffstat (limited to 'contrib/pcl3/src/pclgen.c')
-rw-r--r-- | contrib/pcl3/src/pclgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pcl3/src/pclgen.c b/contrib/pcl3/src/pclgen.c index 0670d886..e6a9c963 100644 --- a/contrib/pcl3/src/pclgen.c +++ b/contrib/pcl3/src/pclgen.c @@ -150,7 +150,7 @@ static void send_ERG(gp_file *out, pcl_Level level) int pcl3_init_file(gs_memory_t *mem, gp_file *out, pcl_FileData *data) { - pcl_bool needs_CRD = (data->level == pcl_level_3plus_CRD_only); + pcl_bool needs_CRD = (data && data->level == pcl_level_3plus_CRD_only); /* Do we need Configure Raster Data? */ int j; const pcl_ColorantState *colorant = NULL; @@ -469,7 +469,7 @@ int pcl3_init_file(gs_memory_t *mem, gp_file *out, pcl_FileData *data) gp_fprintf(out, "\033*r%dU", /* PCL: Set Number of Planes per Row/Simple Color */ data->palette == pcl_RGB? 3: /* RGB palette */ - -data->number_of_colorants); /* (K)(CMY) palette */ + -(int)data->number_of_colorants); /* (K)(CMY) palette */ /* Configure Raster Data */ if (needs_CRD) { |