Fix clang warning.

This commit is contained in:
Wilson Snyder 2020-04-01 12:40:49 -04:00
parent 4361c4b57a
commit ab058c85bf

View File

@ -2057,7 +2057,7 @@ V3Number& V3Number::opRToIRoundS(const V3Number& lhs) {
double v = VL_ROUND(lhs.toDouble()); double v = VL_ROUND(lhs.toDouble());
setZero(); setZero();
union { double d; vluint64_t q; } u; 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<int>((u.q >> VL_ULL(52)) & VL_MASK_Q(11)) - 1023; int exp = static_cast<int>((u.q >> VL_ULL(52)) & VL_MASK_Q(11)) - 1023;
int lsb = exp - 52; int lsb = exp - 52;