diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
commit | df5520aa2dae5b3ce7abf8733dcdd152898af163 (patch) | |
tree | 00d3047bfb14f682bfb5a21010c731ed649bfed7 /app/tools/halibut/charset/fromucs.c | |
parent | df247efec654e512242e4f4f1b0212034f9e01fe (diff) | |
parent | ec3c0f6f6e7153fa797dc57a0e95779cbc63a23b (diff) |
Merge branch 'release/debian/1_5.3.0GA-1'debian/1_5.3.0GA-1
Diffstat (limited to 'app/tools/halibut/charset/fromucs.c')
-rw-r--r-- | app/tools/halibut/charset/fromucs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/tools/halibut/charset/fromucs.c b/app/tools/halibut/charset/fromucs.c index 8090c19..3faf48e 100644 --- a/app/tools/halibut/charset/fromucs.c +++ b/app/tools/halibut/charset/fromucs.c @@ -16,7 +16,7 @@ static void charset_emit(void *ctx, long int output) struct charset_emit_param *param = (struct charset_emit_param *)ctx; if (param->outlen > 0) { - *param->output++ = output; + *param->output++ = (char)output; param->outlen--; } else { param->stopped = 1; @@ -47,7 +47,7 @@ int charset_from_unicode(const wchar_t **input, int *inlen, *error = FALSE; while (*inlen > 0) { - int lenbefore = param.output - output; + int lenbefore = (int)(param.output - output); int ret; if (input) @@ -78,5 +78,5 @@ int charset_from_unicode(const wchar_t **input, int *inlen, (*input)++; (*inlen)--; } - return param.output - output; + return (int)(param.output - output); } |