diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-05-28 16:52:19 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-05-28 16:52:19 -0400 |
commit | 51885e9a1e6dcebe0ae72834770e9000063187bf (patch) | |
tree | 0c1ace8dddda8a3bcf1cc4e1b0125a5f14d40a48 /test/user-font.c | |
parent | 9b16b528dcfffc896cecbda87249ff09a7987eb7 (diff) | |
download | cairo-51885e9a1e6dcebe0ae72834770e9000063187bf.tar.gz |
[test/user-font.c] Fix compiler warnings
Diffstat (limited to 'test/user-font.c')
-rw-r--r-- | test/user-font.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/user-font.c b/test/user-font.c index 5cddfed2a..764d44f42 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; |