* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: siconv.c,v 1.19 2006-04-19 23:15:39 adam Exp $
+ * $Id: siconv.c,v 1.21 2006-04-19 23:48:06 adam Exp $
*/
/**
* \file siconv.c
if (!y)
return 0;
- byte = (y>>16) & 0xff;
+ byte = (unsigned char )((y>>16) & 0xff);
if (byte)
out_buf[out_no++] = byte;
- byte = (y>>8) & 0xff;
+ byte = (unsigned char)((y>>8) & 0xff);
if (byte)
out_buf[out_no++] = byte;
- byte = y & 0xff;
+ byte = (unsigned char )(y & 0xff);
if (byte)
out_buf[out_no++] = byte;
for (i = 0; i < cd->write_marc8_comb_no; i++)
{
- byte = cd->write_marc8_comb_ch[i];
+ /* all MARC-8 combined characters are simple bytes */
+ byte = (unsigned char )(cd->write_marc8_comb_ch[i]);
if (byte == 0xEB)
second_half = 0xEC;
else if (byte == 0xFA)