diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-06 16:04:24 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-06 16:04:24 +0100 |
commit | 5d2c2b27a6323e2666378b986129b2a7c2c39e5c (patch) | |
tree | ce8982b6c0111f79791068de2c2d4c6ce3138a49 /app/tools/halibut/charset/toucs.c | |
parent | b623f5953691b2a0614e6f1f4def86bdbb9a4113 (diff) |
New upstream version 5.2.2GAupstream/5.2.2GA
Diffstat (limited to 'app/tools/halibut/charset/toucs.c')
-rw-r--r-- | app/tools/halibut/charset/toucs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/tools/halibut/charset/toucs.c b/app/tools/halibut/charset/toucs.c index bee98ab..807001b 100644 --- a/app/tools/halibut/charset/toucs.c +++ b/app/tools/halibut/charset/toucs.c @@ -30,7 +30,7 @@ static void unicode_emit(void *ctx, long int output) outlen = 1; } } else { - outval = output; + outval = (wchar_t)output; p = &outval; outlen = 1; } @@ -65,7 +65,7 @@ int charset_to_unicode(const char **input, int *inlen, localstate = *state; /* structure copy */ while (*inlen > 0) { - int lenbefore = param.output - output; + int lenbefore = (int)(param.output - output); spec->read(spec, (unsigned char)**input, &localstate, unicode_emit, ¶m); if (param.stopped) { @@ -83,5 +83,5 @@ int charset_to_unicode(const char **input, int *inlen, (*inlen)--; } - return param.output - output; + return (int)(param.output - output); } |