From c64407f7cfc804494eaa3cb6b9af78aa0d3493d2 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 3 Jan 2013 16:16:11 -0800 Subject: [PATCH] Cleanup new darray in array structure The valsr real array support was switched to a dynamic array vals. This patch updates teh valgrind cleanup code to use the correct name. --- vvp/array.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vvp/array.cc b/vvp/array.cc index 26bf2d6ff..a965bf76f 100644 --- a/vvp/array.cc +++ b/vvp/array.cc @@ -76,8 +76,8 @@ vvp_array_t array_find(const char*label) * an array of vvp_vector4_t vectors. * * - Array of real variables -* The valsr member points to a vvp_realarray_t objects that has an -* array of double variables. This is very much line the way the +* The vals member points to a dynamic array objects that has an +* array of double variables. This is very much like the way the * vector4 array works. */ struct __vpiArray : public __vpiHandle { @@ -1897,10 +1897,10 @@ void memory_delete(vpiHandle item) // constant_delete(handle)? delete arr->vals4; -// if (arr->valsr) {} +// if (arr->vals) {} // Delete the individual words? // constant_delete(handle)? - delete arr->valsr; + delete arr->vals; if (arr->nets) { for (unsigned idx = 0; idx < arr->array_count; idx += 1) {