From 12f4d29df34d6073bd3ec362c36070a116367e82 Mon Sep 17 00:00:00 2001 From: "Frederick C. Kurz" Date: Fri, 10 Jul 2015 12:50:39 -0400 Subject: [PATCH] Changes to vvp/class_type.cc Changed for "Microsoft Visual Studio Express 2015 RC Web" so sv_class14.v would pass without runtime memory error. --- vvp/class_type.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vvp/class_type.cc b/vvp/class_type.cc index 48ccb33c8..e0e56d995 100644 --- a/vvp/class_type.cc +++ b/vvp/class_type.cc @@ -388,8 +388,8 @@ void property_object::get_object(char*buf, vvp_object_t&val, uint64_t idx) void property_object::copy(char*dst, char*src) { - vvp_object_t*dst_obj = reinterpret_cast(dst); - vvp_object_t*src_obj = reinterpret_cast(src); + vvp_object_t*dst_obj = reinterpret_cast(dst+offset_); + vvp_object_t*src_obj = reinterpret_cast(src+offset_); for (size_t idx = 0 ; idx < array_size_ ; idx += 1) dst_obj[idx] = src_obj[idx]; }