From: Peter Verthez Date: Fri, 16 Aug 2002 16:28:31 +0000 (+0000) Subject: Remove conversion warning. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=d6e9c8d668239d95da04fc3cb546d79701467a69;p=gedcom-parse.git Remove conversion warning. --- diff --git a/t/utf8-locale.c b/t/utf8-locale.c index 9946cc9..de40ded 100644 --- a/t/utf8-locale.c +++ b/t/utf8-locale.c @@ -79,7 +79,7 @@ char* convert_utf8_to_locale(char* input, int *conv_fails) outsize = outbufsize; memset(outbuffer, 0, outbufsize); nconv = iconv(utf8_to_locale, &inptr, &insize, &outptr, &outsize); - while (nconv == -1) { + while (nconv == (size_t)-1) { if (errno == E2BIG) { /* grow the output buffer */ size_t outlen; @@ -136,7 +136,7 @@ char* convert_locale_to_utf8(char* input) outsize = outbufsize; memset(outbuffer, 0, outbufsize); nconv = iconv(locale_to_utf8, &inptr, &insize, &outptr, &outsize); - while (nconv == -1) { + while (nconv == (size_t)-1) { if (errno == E2BIG) { /* grow the output buffer */ size_t outlen;