From: Adam Dickmeiss Date: Tue, 19 Jan 2010 13:37:47 +0000 (+0100) Subject: Add safe cast X-Git-Tag: v4.0.0~9 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=2d93f6df5a0d595628e2a61304ad0024a54775dd;p=yaz-moved-to-github.git Add safe cast --- diff --git a/src/advancegreek.c b/src/advancegreek.c index e0b6679..a207ca4 100644 --- a/src/advancegreek.c +++ b/src/advancegreek.c @@ -366,7 +366,7 @@ static size_t write_advancegreek(yaz_iconv_t cd, yaz_iconv_encoder_t w, yaz_iconv_set_errno(cd, YAZ_ICONV_EILSEQ); return (size_t) -1; } - out[k++] = x; + out[k++] = (unsigned char ) x; break; } *outbytesleft -= k;