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

Signed-off-by: Alan Coopersmith <[email protected]>
---
 tests/flip_test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/flip_test.c b/tests/flip_test.c
index a6eb0c0..6710590 100644
--- a/tests/flip_test.c
+++ b/tests/flip_test.c
@@ -177,7 +177,7 @@ static void connector_find_preferred_mode(struct 
test_output *o, int crtc_id)
 static void
 paint_flip_mode(cairo_t *cr, int width, int height, void *priv)
 {
-       bool odd_frame = priv;
+       bool odd_frame = (bool) priv;
 
        if (odd_frame)
                cairo_rectangle(cr, width/4, height/2, width/4, height/8);
-- 
1.7.9.2

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to