[cairo] [PATCH] pdf: Quell warning comparing cairo_status_t and _cairo_int_status types

Bryce W. Harrington b.harrington at samsung.com
Wed Jun 19 20:17:03 PDT 2013


Signed-off-by: Bryce Harrington <b.harrington at samsung.com>
---
 src/cairo-pdf-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 1b76ca9..133f6f2 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -4008,7 +4008,7 @@ _cairo_pdf_surface_paint_gradient (cairo_pdf_surface_t         *surface,
     status = _cairo_pdf_surface_add_pdf_shading (surface, source,
 						 extents,
 						 &shading_res, &gstate_res);
-    if (unlikely (status == CAIRO_INT_STATUS_NOTHING_TO_DO))
+    if (unlikely (status == (cairo_status_t)CAIRO_INT_STATUS_NOTHING_TO_DO))
 	return CAIRO_STATUS_SUCCESS;
     if (unlikely (status))
 	return status;
-- 
1.7.9.5


--
Bryce Harrington
Senior Open Source Developer  -  b.harrington at samsung.com
Open Source Group             -  Samsung Research America



More information about the cairo mailing list