From 4854de06cad3c9a921b5e75577eb421064d5cf1b Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sun, 5 Jan 2025 09:17:53 -0800 Subject: [PATCH] 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 --- vvp/class_type.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vvp/class_type.cc b/vvp/class_type.cc index be7a55b5a..716cfb944 100644 --- a/vvp/class_type.cc +++ b/vvp/class_type.cc @@ -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(buf+offset_);