Add safe cast
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 19 Jan 2010 13:37:47 +0000 (14:37 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 19 Jan 2010 13:37:47 +0000 (14:37 +0100)
src/advancegreek.c

index e0b6679..a207ca4 100644 (file)
@@ -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;