diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2006-12-01 09:55:32 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2006-12-01 09:55:32 +0000 |
commit | 95465b01db26cdfe513eaac771267c536fabeca3 (patch) | |
tree | 023ce3e0a24c427f5a51e479107d031760d6cecb /graphics/nurbs++/files/patch-nurbsSub.cpp | |
parent | - Reserve UID/GID 143 for mail/dovecot (diff) |
- Unbreak on 5.X and above: fix compile with gcc34
PR: ports/106117
Submitted by: Peter Johnson <johnson.peter@gmail.com>
Diffstat (limited to 'graphics/nurbs++/files/patch-nurbsSub.cpp')
-rw-r--r-- | graphics/nurbs++/files/patch-nurbsSub.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
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<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)]); + } |