videotestsrc: Fix undefined left shift
Cast value to target type
This commit is contained in:
parent
31d5ac15b2
commit
c81e3e6fce
@ -1206,9 +1206,9 @@ paint_tmpline_ARGB (paintinfo * p, int x, int w)
|
|||||||
|
|
||||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||||
value = (p->color->A << 0) | (p->color->R << 8) |
|
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
|
#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);
|
(p->color->G << 8) | (p->color->B << 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user