From 95465b01db26cdfe513eaac771267c536fabeca3 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 1 Dec 2006 09:55:32 +0000 Subject: - Unbreak on 5.X and above: fix compile with gcc34 PR: ports/106117 Submitted by: Peter Johnson --- graphics/nurbs++/files/patch-nurbsSub.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 graphics/nurbs++/files/patch-nurbsSub.cpp (limited to 'graphics/nurbs++/files/patch-nurbsSub.cpp') diff --git a/graphics/nurbs++/files/patch-nurbsSub.cpp b/graphics/nurbs++/files/patch-nurbsSub.cpp new file mode 100644 index 000000000000..9bb00ef2c301 --- /dev/null +++ b/graphics/nurbs++/files/patch-nurbsSub.cpp @@ -0,0 +1,20 @@ +--- 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*)[Granularity+1]); ++ CHECK( pts = new SurfSample* [Granularity+1]); + CHECK( pts[0] = new SurfSample[(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)]); + } -- cgit v1.2.3