Skip to content

Commit 29ce599

Browse files
committed
Add explicit cast for bounding box.
1 parent 606e9cc commit 29ce599

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cups/raster-stream.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,10 +334,10 @@ cupsRasterInitHeader(
334334
h->cupsPageSize[0] = 72.0f * media->width / 2540.0f;
335335
h->cupsPageSize[1] = 72.0f * media->length / 2540.0f;
336336

337-
h->ImagingBoundingBox[0] = 72.0f * media->left / 2540.0f;
338-
h->ImagingBoundingBox[1] = 72.0f * media->bottom / 2540.0f;
339-
h->ImagingBoundingBox[2] = 72.0f * (media->width - media->right) / 2540.0f;
340-
h->ImagingBoundingBox[3] = 72.0f * (media->length - media->top) / 2540.0f;
337+
h->ImagingBoundingBox[0] = (unsigned)(72.0f * media->left / 2540.0f);
338+
h->ImagingBoundingBox[1] = (unsigned)(72.0f * media->bottom / 2540.0f);
339+
h->ImagingBoundingBox[2] = (unsigned)(72.0f * (media->width - media->right) / 2540.0f);
340+
h->ImagingBoundingBox[3] = (unsigned)(72.0f * (media->length - media->top) / 2540.0f);
341341

342342
h->HWResolution[0] = (unsigned)xdpi;
343343
h->HWResolution[1] = (unsigned)ydpi;

0 commit comments

Comments
 (0)