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-image-compositor.c | |
parent | 44f808fce9f437e14f2b0ef4e1583def8ab578ae (diff) | |
download | cairo-518ba137794243d1024634449a3e07f72b7b888e.tar.gz |
Fix undefined left-shifts
Diffstat (limited to 'src/cairo-image-compositor.c')
-rw-r--r-- | src/cairo-image-compositor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-image-compositor.c b/src/cairo-image-compositor.c index 4f8aaed99..728173793 100644 --- a/src/cairo-image-compositor.c +++ b/src/cairo-image-compositor.c @@ -130,7 +130,7 @@ static inline uint32_t color_to_uint32 (const cairo_color_t *color) { return - (color->alpha_short >> 8 << 24) | + ((uint32_t)color->alpha_short >> 8 << 24) | (color->red_short >> 8 << 16) | (color->green_short & 0xff00) | (color->blue_short >> 8); @@ -891,7 +891,7 @@ composite_glyphs (void *_dst, for (i = 0; i < info->num_glyphs; i++) { unsigned long index = info->glyphs[i].index; const void *glyph; - int xphase, yphase; + uint32_t xphase, yphase; xphase = PHASE(info->glyphs[i].x); yphase = PHASE(info->glyphs[i].y); |