From ab058c85bfb97ee95400b9675ccf45d996552017 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 1 Apr 2020 12:40:49 -0400 Subject: [PATCH] Fix clang warning. --- src/V3Number.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Number.cpp b/src/V3Number.cpp index d397d203d..ef9e66d8b 100644 --- a/src/V3Number.cpp +++ b/src/V3Number.cpp @@ -2057,7 +2057,7 @@ V3Number& V3Number::opRToIRoundS(const V3Number& lhs) { double v = VL_ROUND(lhs.toDouble()); setZero(); union { double d; vluint64_t q; } u; - u.d = v; if (u.d) {} + u.d = v; if (u.d == 0.0) {} int exp = static_cast((u.q >> VL_ULL(52)) & VL_MASK_Q(11)) - 1023; int lsb = exp - 52;