Clear up compile warning on gcc44 compilers.

This commit is contained in:
Stephen Williams 2010-09-12 08:59:19 -07:00
parent 64d713dd6d
commit 008082c8cb
1 changed files with 1 additions and 1 deletions

View File

@ -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<void*>(val_)) vvp_scalar_t[PTR_THRESH];
} else {
ptr_ = new vvp_scalar_t[size_];
}