X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/charset/blobdiff_plain/c6d25d8d73da77087aa3e413af2ae72f6300891f..387b57a52c3104263042fc8365e1603bbfe51c13:/euc.c diff --git a/euc.c b/euc.c index 72bd2b3..5d33a6f 100644 --- a/euc.c +++ b/euc.c @@ -79,7 +79,8 @@ static void read_euc(charset_spec const *charset, long int input_chr, * it. */ if (state->s0 != 0 && - ((state->s0 & 0x0F000000) >> 24) >= euc->nchars[(state->s0 >> 28)-1]) { + ((state->s0 & 0x0F000000) >> 24) >= + (unsigned)euc->nchars[(state->s0 >> 28)-1]) { emit(emitctx, euc->to_ucs(state->s0)); state->s0 = 0; }