From 786b3a0ca985383ec569edd93f691748a37d6e1e Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 9 Jul 2009 14:41:41 -0700 Subject: [PATCH] Real constants are always signed. Set the signed_flag_ for real constants. --- net_expr.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net_expr.cc b/net_expr.cc index dee99b45d..786895237 100644 --- a/net_expr.cc +++ b/net_expr.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2008 Stephen Williams (steve@icarus.com) + * Copyright (c) 2002-2009 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 @@ -438,6 +438,7 @@ NetECReal::NetECReal(const verireal&val) : value_(val) { expr_width(1); + cast_signed(true); } NetECReal::~NetECReal()