Fix C++ compiler warning.

classes with virtual methods must have virtual destructors. Otherwise,
destruction may not work corectly.
This commit is contained in:
Stephen Williams 2008-10-29 21:03:44 -07:00
parent 18edf2f15f
commit 1922a0df9e
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ class vvp_vector4array_t {
public:
vvp_vector4array_t(unsigned width, unsigned words);
~vvp_vector4array_t();
virtual ~vvp_vector4array_t();
unsigned width() const { return width_; }
unsigned words() const { return words_; }