From 008082c8cb25862994e7be3fe487f6052f9a17fa Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sun, 12 Sep 2010 08:59:19 -0700 Subject: [PATCH] Clear up compile warning on gcc44 compilers. --- vvp/vvp_net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vvp/vvp_net.h b/vvp/vvp_net.h index fb67df31e..57865046a 100644 --- a/vvp/vvp_net.h +++ b/vvp/vvp_net.h @@ -829,7 +829,7 @@ inline vvp_vector8_t::vvp_vector8_t(unsigned size__) : size_(size__) { if (size_ <= PTR_THRESH) { - new (val_) vvp_scalar_t[PTR_THRESH]; + new (reinterpret_cast(val_)) vvp_scalar_t[PTR_THRESH]; } else { ptr_ = new vvp_scalar_t[size_]; }