[cairo-commit] test/user-font.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Wed May 28 13:59:21 PDT 2008


 test/user-font.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 51885e9a1e6dcebe0ae72834770e9000063187bf
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Wed May 28 16:52:19 2008 -0400

    [test/user-font.c] Fix compiler warnings

diff --git a/test/user-font.c b/test/user-font.c
index 5cddfed..764d44f 100644
--- a/test/user-font.c
+++ b/test/user-font.c
@@ -90,7 +90,7 @@ test_scaled_font_unicode_to_glyph (cairo_scaled_font_t *scaled_font,
 								      &test_font_face_glyphs_key);
     int i;
 
-    for (i = 0; glyphs[i].ucs4 != -1; i++)
+    for (i = 0; glyphs[i].ucs4 != (unsigned long) -1; i++)
 	if (glyphs[i].ucs4 == unicode) {
 	    *glyph = i;
 	    return CAIRO_STATUS_SUCCESS;
@@ -186,7 +186,7 @@ get_user_font_face (void)
 	cairo_user_font_face_set_render_glyph_func     (user_font_face, test_scaled_font_render_glyph);
 	cairo_user_font_face_set_unicode_to_glyph_func (user_font_face, test_scaled_font_unicode_to_glyph);
 
-	cairo_font_face_set_user_data (user_font_face, &test_font_face_glyphs_key, glyphs, NULL);
+	cairo_font_face_set_user_data (user_font_face, &test_font_face_glyphs_key, (void*) glyphs, NULL);
     }
 
     return user_font_face;


More information about the cairo-commit mailing list