From d12a3dde45c97328d5f5251ae48b9bf5fb946069 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 28 Jul 2011 07:59:30 -0400 Subject: [PATCH] Fix cast compile warning --- src/V3Number.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3Number.cpp b/src/V3Number.cpp index 56f4f9158..39e9d8270 100644 --- a/src/V3Number.cpp +++ b/src/V3Number.cpp @@ -1494,12 +1494,12 @@ V3Number& V3Number::opIToRD (const V3Number& lhs) { } V3Number& V3Number::opRToIS (const V3Number& lhs) { double v = trunc(lhs.toDouble()); - vlsint32_t i = v; // C converts from double to vlsint32 + vlsint32_t i = (vlsint32_t)v; // C converts from double to vlsint32 return setLongS(i); } V3Number& V3Number::opRToIRoundS (const V3Number& lhs) { double v = round(lhs.toDouble()); - vlsint32_t i = v; // C converts from double to vlsint32 + vlsint32_t i = (vlsint32_t)v; // C converts from double to vlsint32 return setLongS(i); } V3Number& V3Number::opRealToBits (const V3Number& lhs) {