From: Adam Dickmeiss Date: Wed, 19 Apr 2006 23:46:15 +0000 (+0000) Subject: Added safe cast to prevent warning X-Git-Tag: YAZ.2.1.18~32 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=4223ca41705363f737a55a6cda1ec383f6c421c9;hp=8626b7019b5d3d9c9594f20025e97d06a2d590fc Added safe cast to prevent warning --- diff --git a/src/.cvsignore b/src/.cvsignore index 516c468..e7b5eb7 100644 --- a/src/.cvsignore +++ b/src/.cvsignore @@ -10,6 +10,7 @@ z-*.c item-req.c ill-core.c marc8.c +marc8r.c cql.c diagbib1.c diagsrw.c diff --git a/src/siconv.c b/src/siconv.c index c0c70bf..d749383 100644 --- a/src/siconv.c +++ b/src/siconv.c @@ -2,7 +2,7 @@ * 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.20 2006-04-19 23:46:15 adam Exp $ */ /** * \file siconv.c @@ -722,13 +722,13 @@ static size_t flush_combos(yaz_iconv_t cd, 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;