From 2d93f6df5a0d595628e2a61304ad0024a54775dd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 19 Jan 2010 14:37:47 +0100 Subject: [PATCH] Add safe cast --- src/advancegreek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.4