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.
This commit is contained in:
Frederick C. Kurz 2015-07-10 12:50:39 -04:00 committed by Stephen Williams
parent 5e931b7e89
commit 12f4d29df3
1 changed files with 2 additions and 2 deletions

View File

@ -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<vvp_object_t*>(dst);
vvp_object_t*src_obj = reinterpret_cast<vvp_object_t*>(src);
vvp_object_t*dst_obj = reinterpret_cast<vvp_object_t*>(dst+offset_);
vvp_object_t*src_obj = reinterpret_cast<vvp_object_t*>(src+offset_);
for (size_t idx = 0 ; idx < array_size_ ; idx += 1)
dst_obj[idx] = src_obj[idx];
}