From 337eee7dcb495a12bb85005b244a751e1c459823 Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 30 Jun 2000 15:47:06 +0000 Subject: [PATCH] Reduce result is OK in ~ operator. --- vvm/vvm_func.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vvm/vvm_func.cc b/vvm/vvm_func.cc index 343c217fc..7d4153368 100644 --- a/vvm/vvm_func.cc +++ b/vvm/vvm_func.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: vvm_func.cc,v 1.10 2000/05/18 20:35:08 steve Exp $" +#ident "$Id: vvm_func.cc,v 1.11 2000/06/30 15:47:06 steve Exp $" #endif # include "vvm_func.h" @@ -46,7 +46,7 @@ vpip_bit_t vvm_unop_lnot(const vvm_bitset_t&r) void vvm_unop_not(vvm_bitset_t&v, const vvm_bitset_t&p) { - assert(v.nbits == p.nbits); + assert(v.nbits < p.nbits); for (unsigned idx = 0 ; idx < v.nbits ; idx += 1) v[idx] = B_NOT(p[idx]); } @@ -495,6 +495,9 @@ void vvm_ternary(vvm_bitset_t&v, vpip_bit_t c, /* * $Log: vvm_func.cc,v $ + * Revision 1.11 2000/06/30 15:47:06 steve + * Reduce result is OK in ~ operator. + * * Revision 1.10 2000/05/18 20:35:08 steve * Ternary operator handles bit sizes. *