From 4b63fde1450f3d7867d8d9110f068ae48eb92795 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 5 Dec 2003 09:22:03 +0000 Subject: [PATCH] Added a cast (Array*) to get round VS.NET compiler error. --- src/osg/Geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index 007e7c230..29bc91a15 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -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(_targetArray);