diff options
author | Heiko Lewin <hlewin@worldiety.de> | 2021-03-31 12:20:34 +0200 |
---|---|---|
committer | Heiko Lewin <hlewin@worldiety.de> | 2021-03-31 12:20:34 +0200 |
commit | 518ba137794243d1024634449a3e07f72b7b888e (patch) | |
tree | 3a891551b4e4074d3eee369a769be4702ba0bfd8 /src/cairo-xlib-source.c | |
parent | 44f808fce9f437e14f2b0ef4e1583def8ab578ae (diff) | |
download | cairo-518ba137794243d1024634449a3e07f72b7b888e.tar.gz |
Fix undefined left-shifts
Diffstat (limited to 'src/cairo-xlib-source.c')
-rw-r--r-- | src/cairo-xlib-source.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-xlib-source.c b/src/cairo-xlib-source.c index 6269edca5..4c3b99d9e 100644 --- a/src/cairo-xlib-source.c +++ b/src/cairo-xlib-source.c @@ -487,7 +487,7 @@ color_source (cairo_xlib_surface_t *dst, const cairo_color_t *color) } gcv.foreground = 0; - gcv.foreground |= color->alpha_short >> 8 << 24; + gcv.foreground |= (uint32_t)color->alpha_short >> 8 << 24; gcv.foreground |= color->red_short >> 8 << 16; gcv.foreground |= color->green_short >> 8 << 8; gcv.foreground |= color->blue_short >> 8 << 0; @@ -567,7 +567,7 @@ transparent_source (cairo_xlib_surface_t *dst, const cairo_color_t *color) { cairo_xlib_display_t *display = dst->display; uint32_t pixel = - color->alpha_short >> 8 << 24 | + (uint32_t)color->alpha_short >> 8 << 24 | color->red_short >> 8 << 16 | color->green_short >> 8 << 8 | color->blue_short >> 8 << 0; |