summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-05-24 18:26:40 +0000
committerMatt Wilson <msw@src.gnome.org>2000-05-24 18:26:40 +0000
commit62244f7210302bf7608c6130185c17d3d2e714e0 (patch)
treedbe4406b8c9e35b178f263c56e0309e4b3169f4c /modules
parentcef06051b2c6bd00034088ef659f5bd6976fbbb7 (diff)
downloadpango-62244f7210302bf7608c6130185c17d3d2e714e0.tar.gz
use size_t for arguments to iconv, not int. Fixes 64 bit platforms.
2000-05-24 Matt Wilson <msw@redhat.com> * modules/basic/basic.c (conv_8bit): use size_t for arguments to iconv, not int. Fixes 64 bit platforms. * modules/basic/basic.c (conv_euc): likewise
Diffstat (limited to 'modules')
-rw-r--r--modules/basic/basic-x.c8
-rw-r--r--modules/basic/basic.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/modules/basic/basic-x.c b/modules/basic/basic-x.c
index e78aa384..0be1ea14 100644
--- a/modules/basic/basic-x.c
+++ b/modules/basic/basic-x.c
@@ -270,9 +270,9 @@ conv_8bit (CharCache *cache,
const char *p;
const char *inptr = input;
- int inbytesleft;
+ size_t inbytesleft;
char *outptr = &outbuf;
- int outbytesleft = 1;
+ size_t outbytesleft = 1;
_pango_utf8_iterate (input, &p, NULL);
inbytesleft = p - input;
@@ -294,9 +294,9 @@ conv_euc (CharCache *cache,
const char *p;
const char *inptr = input;
- int inbytesleft;
+ size_t inbytesleft;
char *outptr = outbuf;
- int outbytesleft = 2;
+ size_t outbytesleft = 2;
_pango_utf8_iterate (input, &p, NULL);
inbytesleft = p - input;
diff --git a/modules/basic/basic.c b/modules/basic/basic.c
index e78aa384..0be1ea14 100644
--- a/modules/basic/basic.c
+++ b/modules/basic/basic.c
@@ -270,9 +270,9 @@ conv_8bit (CharCache *cache,
const char *p;
const char *inptr = input;
- int inbytesleft;
+ size_t inbytesleft;
char *outptr = &outbuf;
- int outbytesleft = 1;
+ size_t outbytesleft = 1;
_pango_utf8_iterate (input, &p, NULL);
inbytesleft = p - input;
@@ -294,9 +294,9 @@ conv_euc (CharCache *cache,
const char *p;
const char *inptr = input;
- int inbytesleft;
+ size_t inbytesleft;
char *outptr = outbuf;
- int outbytesleft = 2;
+ size_t outbytesleft = 2;
_pango_utf8_iterate (input, &p, NULL);
inbytesleft = p - input;