From 749302acb8b878751d058e83a245ec8a218e6c5e Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 18 Apr 2007 17:41:31 +0000 Subject: [PATCH] Fix MSVCC compile warning git-svn-id: file://localhost/svn/verilator/trunk/verilator@908 77ca24e4-aefa-0310-84f0-b9a241c72d87 --- include/verilated.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/verilated.h b/include/verilated.h index 247c07104..097fb2dfa 100644 --- a/include/verilated.h +++ b/include/verilated.h @@ -513,10 +513,10 @@ static inline IData VL_COUNTONES_W(int words, WDataInP lwp) { } static inline IData VL_ONEHOT_I(IData lhs) { - return ((lhs & (lhs-1))==0 & lhs!=0); + return (((lhs & (lhs-1))==0) & (lhs!=0)); } static inline IData VL_ONEHOT_Q(QData lhs) { - return ((lhs & (lhs-1))==0 & lhs!=0); + return (((lhs & (lhs-1))==0) & (lhs!=0)); } static inline IData VL_ONEHOT_W(int words, WDataInP lwp) { IData one=0;