Fix a couple uninitialized value problems found with tgt-vhdl.

This patch fixes two uninitialized variable problems found
with valgrind when testing the VHDL code generator.
This commit is contained in:
Cary R 2008-09-01 14:30:09 -07:00 committed by Stephen Williams
parent 8fbfdffe91
commit 1944f372c5
1 changed files with 2 additions and 0 deletions

View File

@ -1921,6 +1921,7 @@ void dll_target::lpm_mult(const NetMult*net)
unsigned wid = net->width_r(); unsigned wid = net->width_r();
obj->width = wid; obj->width = wid;
obj->u_.arith.signed_flag = 0;
const Nexus*nex; const Nexus*nex;
@ -2204,6 +2205,7 @@ bool dll_target::net_const(const NetConst*net)
assert(net->pin_count() == 1); assert(net->pin_count() == 1);
obj->width_ = net->width(); obj->width_ = net->width();
obj->signed_ = 0;
if (obj->width_ <= sizeof(obj->b.bit_)) { if (obj->width_ <= sizeof(obj->b.bit_)) {
bits = obj->b.bit_; bits = obj->b.bit_;