From f2cff31b6e9e14a2a62cb87e6ec34d96364cfbdb Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 4 Feb 2002 00:41:34 +0000 Subject: [PATCH] Clean up warnings. --- vvp/vpip_to_dec.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/vvp/vpip_to_dec.cc b/vvp/vpip_to_dec.cc index 386baee0f..7cc239df9 100644 --- a/vvp/vpip_to_dec.cc +++ b/vvp/vpip_to_dec.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: vpip_to_dec.cc,v 1.2 2002/02/03 05:51:31 steve Exp $" +#ident "$Id: vpip_to_dec.cc,v 1.3 2002/02/04 00:41:34 steve Exp $" #endif # include "config.h" @@ -37,10 +37,6 @@ /* #define MAX_DIGITS 20 */ -#ifndef SIZEOF_UNSIGNED_LONG -#define SIZEOF_UNSIGNED_LONG 4 -#endif - #if SIZEOF_UNSIGNED_LONG * CHAR_BIT >= 64 #define BDIGITS 9 #define BASE 1000000000 @@ -120,7 +116,7 @@ unsigned vpip_bits_to_dec_str(const unsigned char *bits, unsigned int nbits, /* Jump through some hoops so we don't have to malloc/free valv * on every call, and implement an optional malloc-less version. */ static unsigned long *valv=NULL; - static int vlen_alloc=0; + static unsigned int vlen_alloc=0; unsigned long val=0; int comp=0;