diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2015-10-21 16:34:23 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2015-10-21 16:34:23 +0000 |
commit | 25f100a96eb494b028046e8856f583888842f9f7 (patch) | |
tree | 653c1822c740431dbf2afd09e9441b12a77e717e /graphics/nurbs++/files/patch-nurbsSub.cpp | |
parent | Mark JOBS_UNSAFE, it sometime fails with: (diff) |
- Resurrect; unbreak on all supported versions of FreeBSD (and 8.X)
- Drop leading indefinite article from COMMENT text
- Stagify, convert to USES=libtool, switch to .tar.bz2 distfile
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)]); + } |