mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
videotestsrc: Fix undefined left shift
Cast value to target type
This commit is contained in:
parent
31d5ac15b2
commit
c81e3e6fce
1 changed files with 2 additions and 2 deletions
|
@ -1206,9 +1206,9 @@ paint_tmpline_ARGB (paintinfo * p, int x, int w)
|
|||
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
value = (p->color->A << 0) | (p->color->R << 8) |
|
||||
(p->color->G << 16) | (p->color->B << 24);
|
||||
(p->color->G << 16) | ((guint32) p->color->B << 24);
|
||||
#else
|
||||
value = (p->color->A << 24) | (p->color->R << 16) |
|
||||
value = ((guint32) p->color->A << 24) | (p->color->R << 16) |
|
||||
(p->color->G << 8) | (p->color->B << 0);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue