diff options
author | joerg <joerg@pkgsrc.org> | 2013-03-24 16:52:35 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-03-24 16:52:35 +0000 |
commit | 1d5916c5058fbec8dd7aaa2cfb9628d9456eca5d (patch) | |
tree | 808707069f25c6cc857c5cc4135696350809f9fa /math | |
parent | fabff27c5bde9b37892aa4f00b98d83709a9afdf (diff) | |
download | pkgsrc-1d5916c5058fbec8dd7aaa2cfb9628d9456eca5d.tar.gz |
Don't use VLAs of non-POD types.
Diffstat (limited to 'math')
-rw-r--r-- | math/aamath/distinfo | 4 | ||||
-rw-r--r-- | math/aamath/patches/patch-expr.cc | 22 |
2 files changed, 22 insertions, 4 deletions
diff --git a/math/aamath/distinfo b/math/aamath/distinfo index d55b42edf37..35a61a43aa1 100644 --- a/math/aamath/distinfo +++ b/math/aamath/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.3 2011/12/16 22:31:46 sbd Exp $ +$NetBSD: distinfo,v 1.4 2013/03/24 16:52:35 joerg Exp $ SHA1 (aamath-0.3.tar.gz) = dc68abaf2131c73ddb1a520c95d65596e30f1b0a RMD160 (aamath-0.3.tar.gz) = 396ce7213a30a5c133dc964e2a531fe28a24b6c0 Size (aamath-0.3.tar.gz) = 21894 bytes SHA1 (patch-Makefile) = cafb2a32db8fa0e93e0e177c2e67fdc6790c4390 -SHA1 (patch-expr.cc) = efe3ee16970325c770c8e8e2fe200bbfada0cc1c +SHA1 (patch-expr.cc) = 0fe3c8c543bb7fbb2b3e1d64f50b99cf4d5b717f SHA1 (patch-expr.h) = 3d0382a90b8c88f18a639d87e7cc1253fafda4fb diff --git a/math/aamath/patches/patch-expr.cc b/math/aamath/patches/patch-expr.cc index 54ce995f6e2..84f2a88a19c 100644 --- a/math/aamath/patches/patch-expr.cc +++ b/math/aamath/patches/patch-expr.cc @@ -1,6 +1,6 @@ -$NetBSD: patch-expr.cc,v 1.1 2011/11/25 22:04:43 joerg Exp $ +$NetBSD: patch-expr.cc,v 1.2 2013/03/24 16:52:35 joerg Exp $ ---- expr.cc.orig 2011-11-25 13:49:36.000000000 +0000 +--- expr.cc.orig 2005-03-08 02:00:02.000000000 +0000 +++ expr.cc @@ -1192,7 +1192,7 @@ IntegralOnInterval::render_head() const @@ -20,3 +20,21 @@ $NetBSD: patch-expr.cc,v 1.1 2011/11/25 22:04:43 joerg Exp $ }; void +@@ -1612,7 +1612,7 @@ Matrix::render() const + int cols = num_cols(); + int rows = num_rows(); + +- CanvasPtr ec[cols * rows]; ++ CanvasPtr *ec = new CanvasPtr[cols * rows]; + Size sz[cols * rows]; + + int row_height[rows]; +@@ -1692,6 +1692,8 @@ Matrix::render() const + + canvas->center(); + ++ delete[] ec; ++ + return canvas; + } + |