vvp: Fix logic class property initialization

Logic type class properties use the wrong constructor resulting in a
default value of a vector with 0 width. Switch to the right constructor to
fix this.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
Lars-Peter Clausen 2025-01-05 09:17:53 -08:00
parent 23a7c80dde
commit 4854de06ca
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class property_logic : public class_property_t {
public:
void construct(char*buf) const
{ new (buf+offset_) vvp_vector4_t (0, wid_); }
{ new (buf+offset_) vvp_vector4_t (wid_); }
void destruct(char*buf) const
{ vvp_vector4_t*tmp = reinterpret_cast<vvp_vector4_t*>(buf+offset_);