From c57e68292c2dda8201a1e4d0f0368fa1ea219e10 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 8 Jan 2015 10:03:30 -0800 Subject: [PATCH] Fix undefined value problem in compiler (found with valgrind) --- t-dll-expr.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t-dll-expr.cc b/t-dll-expr.cc index 7ab761ea5..1231ea86f 100644 --- a/t-dll-expr.cc +++ b/t-dll-expr.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2011 Stephen Williams (steve@icarus.com) + * Copyright (c) 2000-2015 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 @@ -364,6 +364,7 @@ void dll_target::expr_last(const NetELast*net) esig->value_ = IVL_VT_DARRAY; esig->net_type= sig->net_type; esig->width_ = 1; + esig->signed_ = sig->net_type->get_signed()? 1 : 0; FILE_NAME(esig, net); esig->u_.signal_.word = 0; esig->u_.signal_.sig = sig;