From: Mike Taylor Date: Mon, 12 Jun 2006 16:12:58 +0000 (+0000) Subject: Avoid pointer-sign clash in yaz_marc_decode_buf() call. X-Git-Tag: YAZ.2.1.22~14 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=7d280285b7dd17c9a71b8d458171f40f35dd6682;p=yaz-moved-to-github.git Avoid pointer-sign clash in yaz_marc_decode_buf() call. --- diff --git a/util/marcdump.c b/util/marcdump.c index d4f59c1..f5087e4 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdump.c,v 1.38 2006-06-07 10:51:14 adam Exp $ + * $Id: marcdump.c,v 1.39 2006-06-12 16:12:58 mike Exp $ */ #define _FILE_OFFSET_BITS 64 @@ -204,7 +204,9 @@ static void dump(const char *fname, const char *from, const char *to, fclose(sf); } } - r = yaz_marc_decode_buf (mt, buf, -1, &result, &rlen); + { int rlentmp = (int) rlen; + r = yaz_marc_decode_buf (mt, buf, -1, &result, &rlentmp); + rlen = (size_t) rlentmp; } if (r > 0 && result) { fwrite (result, rlen, 1, stdout);