From 4223ca41705363f737a55a6cda1ec383f6c421c9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 19 Apr 2006 23:46:15 +0000 Subject: [PATCH] Added safe cast to prevent warning --- src/.cvsignore | 1 + src/siconv.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) 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; -- 1.7.10.4