flip_test: add cast to pacify Solaris Studio compiler

Fixes build error:
"flip_test.c", line 180: improper pointer/integer combination: op "="

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Alan Coopersmith 2012-08-24 14:02:03 -07:00 committed by Daniel Vetter
parent 6b3e6f28d2
commit 4cdfa8e9b7

View File

@ -177,7 +177,7 @@ static void connector_find_preferred_mode(struct test_output *o, int crtc_id)
static void static void
paint_flip_mode(cairo_t *cr, int width, int height, void *priv) paint_flip_mode(cairo_t *cr, int width, int height, void *priv)
{ {
bool odd_frame = priv; bool odd_frame = (bool) priv;
if (odd_frame) if (odd_frame)
cairo_rectangle(cr, width/4, height/2, width/4, height/8); cairo_rectangle(cr, width/4, height/2, width/4, height/8);