The __vpiArray::set_word method should take a reference.
Seem to have missed a case where a vvp_vector4_t can be passed by const reference instead of by value.
This commit is contained in:
parent
58fb80aec4
commit
b83144c552
|
|
@ -545,7 +545,7 @@ void __vpiArrayVthrAPV::vpi_get_value(p_vpi_value vp)
|
|||
}
|
||||
}
|
||||
|
||||
void __vpiArray::set_word(unsigned address, unsigned part_off, vvp_vector4_t val)
|
||||
void __vpiArray::set_word(unsigned address, unsigned part_off, const vvp_vector4_t&val)
|
||||
{
|
||||
if (address >= get_size())
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -605,7 +605,7 @@ struct __vpiArray : public __vpiArrayBase, public __vpiHandle {
|
|||
inline vpiHandle vpi_iterate(int code) { return vpi_array_base_iterate(code); }
|
||||
vpiHandle vpi_index(int idx);
|
||||
|
||||
void set_word(unsigned idx, unsigned off, vvp_vector4_t val);
|
||||
void set_word(unsigned idx, unsigned off, const vvp_vector4_t&val);
|
||||
void set_word(unsigned idx, double val);
|
||||
void set_word(unsigned idx, const std::string&val);
|
||||
void set_word(unsigned idx, const vvp_object_t&val);
|
||||
|
|
|
|||
Loading…
Reference in New Issue