Added a cast (Array*) to get round VS.NET compiler error.

This commit is contained in:
Robert Osfield
2003-12-05 09:22:03 +00:00
parent 9c2f01fd61
commit 4b63fde145

View File

@@ -2276,7 +2276,7 @@ class ExpandIndexedArray : public osg::ConstArrayVisitor
T* newArray = 0;
// if source array type and target array type are equal but arrays arn't equal
if (_targetArray && _targetArray->getType()==array.getType() && _targetArray!=&array)
if (_targetArray && _targetArray->getType()==array.getType() && _targetArray!=(osg::Array*)(&array))
{
// reuse exisiting target array
newArray = static_cast<T*>(_targetArray);