mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 01:03:29 +02:00
Ensure value passed to named event via vpi_put_value() is initialised.
The __vpiNamedEvent::vpi_put_value() function ignores the value, but intermediate code looks at it.
This commit is contained in:
+4
-1
@@ -1110,7 +1110,10 @@ vpiHandle vpi_put_value(vpiHandle obj, s_vpi_value*vp,
|
||||
|
||||
vpip_put_value_event*put = new vpip_put_value_event;
|
||||
put->handle = obj;
|
||||
if (!dynamic_cast<__vpiNamedEvent*>(obj)) {
|
||||
if (dynamic_cast<__vpiNamedEvent*>(obj)) {
|
||||
put->value.format = vpiIntVal;
|
||||
put->value.value.integer = 0;
|
||||
} else {
|
||||
assert(vp);
|
||||
put->value = *vp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user