From: Adam Dickmeiss Date: Fri, 3 Jun 2005 20:33:13 +0000 (+0000) Subject: Use size_t for nmem block sizes internally X-Git-Tag: YAZ.2.1.8~14 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=9e53ad5fa700dbdf5d5c7ac518ff2458c5436da9;p=yaz-moved-to-github.git Use size_t for nmem block sizes internally --- diff --git a/src/nmem.c b/src/nmem.c index 123d284..f1fcb1a 100644 --- a/src/nmem.c +++ b/src/nmem.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: nmem.c,v 1.16 2005-06-03 20:30:30 adam Exp $ + * $Id: nmem.c,v 1.17 2005-06-03 20:33:13 adam Exp $ */ /** @@ -46,8 +46,8 @@ struct nmem_block { char *buf; /* memory allocated in this block */ - int size; /* size of buf */ - int top; /* top of buffer */ + size_t size; /* size of buf */ + size_t top; /* top of buffer */ struct nmem_block *next; };