From 5e954e94fa3f1c95ed2b890ed2b9b72561643287 Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 21 Jul 2003 02:39:15 +0000 Subject: [PATCH] Overflow of unsigned when calculating unsigned long value. --- vvp/vthread.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vvp/vthread.cc b/vvp/vthread.cc index b3d7d754e..1c777566f 100644 --- a/vvp/vthread.cc +++ b/vvp/vthread.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: vthread.cc,v 1.112 2003/07/03 20:03:36 steve Exp $" +#ident "$Id: vthread.cc,v 1.113 2003/07/21 02:39:15 steve Exp $" #endif # include "vthread.h" @@ -1874,8 +1874,8 @@ bool of_MUL(vthread_t thr, vvp_code_t cp) unsigned long lv = 0, rv = 0; for (unsigned idx = 0 ; idx < cp->number ; idx += 1) { - unsigned lb = thr_get_bit(thr, idx1); - unsigned rb = thr_get_bit(thr, idx2); + unsigned long lb = thr_get_bit(thr, idx1); + unsigned long rb = thr_get_bit(thr, idx2); if ((lb | rb) & 2) goto x_out; @@ -2756,6 +2756,9 @@ bool of_JOIN_UFUNC(vthread_t thr, vvp_code_t cp) /* * $Log: vthread.cc,v $ + * Revision 1.113 2003/07/21 02:39:15 steve + * Overflow of unsigned when calculating unsigned long value. + * * Revision 1.112 2003/07/03 20:03:36 steve * Remove the vvp_cpoint_t indirect code pointer. *