[cairo-commit] cairo/src cairo_ft_font.c,1.30,1.31

Carl Worth commit at pdx.freedesktop.org
Wed Jan 19 11:39:11 PST 2005


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv21652/src

Modified Files:
	cairo_ft_font.c 
Log Message:

        * src/cairo_ft_font.c (_utf8_to_ucs4): Fix int* vs. size_t*
        confusion, (currently in favor of int* but only because that's
        easier to implement). Thanks to John Ellson
        <ellson at research.att.com>. Closes bug #2328.


Index: cairo_ft_font.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_ft_font.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- cairo_ft_font.c	13 Jan 2005 14:50:23 -0000	1.30
+++ cairo_ft_font.c	19 Jan 2005 19:39:07 -0000	1.31
@@ -411,10 +411,10 @@
 static void 
 _utf8_to_ucs4 (char const *utf8, 
                FT_ULong **ucs4, 
-               size_t *nchars)
+               int *nchars)
 {
     int len = 0, step = 0;
-    size_t n = 0, alloc = 0;
+    int n = 0, alloc = 0;
     FcChar32 u = 0;
 
     if (utf8 == NULL || ucs4 == NULL || nchars == NULL)




More information about the cairo-commit mailing list