freebsd-ports/graphics/nurbs++/files/patch-nurbsSub.cpp
Pav Lucistnik 95465b01db - Unbreak on 5.X and above: fix compile with gcc34
PR:		ports/106117
Submitted by:	Peter Johnson <johnson.peter@gmail.com>
2006-12-01 09:55:32 +00:00

20 lines
643 B
C++

--- nurbs/nurbsSub.cpp.orig Mon May 13 14:07:46 2002
+++ nurbs/nurbsSub.cpp Fri Dec 1 01:04:05 2006
@@ -904,7 +904,7 @@
/* Allocate storage for the grid of points generated */
- CHECK( pts = new (SurfSample<T>*)[Granularity+1]);
+ CHECK( pts = new SurfSample<T>* [Granularity+1]);
CHECK( pts[0] = new SurfSample<T>[(Granularity+1)*(Granularity+1)]);
for (i = 1; i <= Granularity; i++)
@@ -983,7 +983,7 @@
if (! *alpha) /* Must allocate alpha */
{
- CHECK( *alpha = new (T*)[k+1]);
+ CHECK( *alpha = new T* [k+1]);
for (i = 0; i <= k; i++)
CHECK( (*alpha)[i] = new T[(m + n + 1)]);
}