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:
parent
23a7c80dde
commit
4854de06ca
|
|
@ -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_);
|
||||
|
|
|
|||
Loading…
Reference in New Issue