From 0d71c1154d764ff5ab936a77dbad09907da4392c Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 15 Jun 2019 07:43:45 -0400 Subject: [PATCH] Fix overshift error to have user's source line. --- src/V3Number.cpp | 12 +++++++++--- src/V3Number.h | 2 +- test_regress/t/t_math_shift_over_bad.out | 5 ++--- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/V3Number.cpp b/src/V3Number.cpp index e4abd9f10..4448775d1 100644 --- a/src/V3Number.cpp +++ b/src/V3Number.cpp @@ -35,7 +35,7 @@ //====================================================================== // Errors -void V3Number::v3errorEnd(std::ostringstream& str) { +void V3Number::v3errorEnd(std::ostringstream& str) const { std::ostringstream nsstr; nsstr<v3errorEnd(nsstr); @@ -665,7 +665,10 @@ uint32_t V3Number::toUInt() const { UASSERT(!isFourState(), "toUInt with 4-state "<<*this); // We allow wide numbers that represent values <= 32 bits for (int i=1; i(toUInt())); return ((static_cast(m_value[1])<