From 890589191cfbb25f722982da603245397c2b2d95 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 14 Feb 2013 18:55:34 -0800 Subject: [PATCH] When duplicating a select keep the sign information Make the duplicate select signed if the original was signed. --- dup_expr.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dup_expr.cc b/dup_expr.cc index e3d9cd552..084e433c2 100644 --- a/dup_expr.cc +++ b/dup_expr.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999-2011 Stephen Williams (steve@icarus.com) + * Copyright (c) 1999-2013 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -207,6 +207,7 @@ NetESelect* NetESelect::dup_expr() const base_? base_->dup_expr() : 0, expr_width(), sel_type_); ivl_assert(*this, tmp); + tmp->cast_signed(has_sign()); tmp->set_line(*this); return tmp; }