diff --git a/src/V3LinkDot.cpp b/src/V3LinkDot.cpp index d0a5e3b90..d6d29d5bd 100644 --- a/src/V3LinkDot.cpp +++ b/src/V3LinkDot.cpp @@ -1092,8 +1092,8 @@ class LinkDotFindVisitor final : public VNVisitor { } else { findvarp->combineType(nodep); findvarp->fileline()->modifyStateInherit(nodep->fileline()); - if (nodep->getChildDTypep()->numeric().isSigned() && - !findvarp->getChildDTypep()->numeric().isSigned()) { + if (nodep->getChildDTypep()->numeric().isSigned() + && !findvarp->getChildDTypep()->numeric().isSigned()) { findvarp->getChildDTypep()->numeric(VSigning(true)); } AstBasicDType* const bdtypep diff --git a/test_regress/t/t_math_signed_calc.pl b/test_regress/t/t_math_signed_calc.pl old mode 100644 new mode 100755