diff --git a/src/V3AstNodes.h b/src/V3AstNodes.h index 63cc55dd8..dcaae8d9c 100644 --- a/src/V3AstNodes.h +++ b/src/V3AstNodes.h @@ -409,8 +409,8 @@ public: void rangep(AstRange* nodep) { setNOp1p(nodep); } void setSignedState(VSignedState signst) { // Note NOSIGN does NOT change the state; this is required by the parser - if (signst==signedst_UNSIGNED) numeric(VSignedState(signst)); - else if (signst==signedst_SIGNED) numeric(VSignedState(signst)); + if (signst==signedst_UNSIGNED) numeric(signst); + else if (signst==signedst_SIGNED) numeric(signst); } // METHODS virtual AstBasicDType* basicp() const { return (AstBasicDType*)this; } // (Slow) recurse down to find basic data type @@ -1797,7 +1797,7 @@ public: }} virtual bool same(AstNode* samep) const { return (m_packagep==samep->castPackageRef()->m_packagep); } - virtual V3Hash sameHash() const { return V3Hash(V3Hash(m_packagep)); } + virtual V3Hash sameHash() const { return V3Hash(m_packagep); } virtual void dump(ostream& str=cout); AstPackage* packagep() const { return m_packagep; } void packagep(AstPackage* nodep) { m_packagep=nodep; } @@ -1919,7 +1919,7 @@ public: } ASTNODE_NODE_FUNCS(SenItem) virtual void dump(ostream& str); - virtual V3Hash sameHash() const { return V3Hash(V3Hash(edgeType())); } + virtual V3Hash sameHash() const { return V3Hash(edgeType()); } virtual bool same(AstNode* samep) const { return edgeType()==samep->castSenItem()->edgeType(); } AstEdgeType edgeType() const { return m_edgeType; } // * = Posedge/negedge diff --git a/src/V3GraphDfa.cpp b/src/V3GraphDfa.cpp index 37880d33d..4fc691e81 100644 --- a/src/V3GraphDfa.cpp +++ b/src/V3GraphDfa.cpp @@ -453,7 +453,7 @@ private: DfaVertex* fromvertexp = static_cast(edgep->fromp()); if (fromvertexp != vertexp && !fromvertexp->user()) { - workps.push(static_cast(fromvertexp)); + workps.push(fromvertexp); fromvertexp->user(1); } } diff --git a/src/V3Options.cpp b/src/V3Options.cpp index c6d3fbd0d..1ea4a7a8b 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -799,7 +799,7 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char } else if ( !strcmp (sw, "-Mdir") && (i+1)