i18n: Fix type of objects passed as u8_mbtouc()'s character parameter.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 27 Apr 2011 04:22:41 +0000 (21:22 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 27 Apr 2011 04:22:41 +0000 (21:22 -0700)
Thanks to Jeremy Lavergne for making a Mac OS build system available.

src/libpspp/i18n.c

index fbff1772a18b2748e21b2cb4a61a3b2f09734dae..688a0c878d3299d1f9a9d729097b5024fff667ca 100644 (file)
@@ -283,7 +283,7 @@ utf8_encoding_concat__ (const char *head, size_t head_len,
       else
         {
           size_t copy_len;
-          size_t prev;
+          ucs4_t prev;
           size_t ofs;
           int mblen;
 
@@ -324,7 +324,7 @@ utf8_encoding_concat__ (const char *head, size_t head_len,
         {
           bool correct_result = false;
           size_t copy_len;
-          size_t prev;
+          ucs4_t prev;
           size_t ofs;
           int mblen;