Skip to content

Commit 31d94f9

Browse files
authored
Merge pull request #68 from leonardt/fix-copy-constructor-bug
Fix error in Cast copy constructor
2 parents 72b212d + 6bc9f8e commit 31d94f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/verilogAST.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Cast : public Expression {
115115

116116
Cast(unsigned int width, std::unique_ptr<Expression> expr)
117117
: width(width), expr(std::move(expr)){};
118-
Cast(const Cast& rhs) : width(rhs.width), expr(expr->clone()){};
118+
Cast(const Cast& rhs) : width(rhs.width), expr(rhs.expr->clone()){};
119119
auto clone() const { return std::unique_ptr<Cast>(clone_impl()); }
120120

121121
std::string toString() override;

0 commit comments

Comments
 (0)