summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjoerg <joerg>2016-12-17 23:31:35 +0000
committerjoerg <joerg>2016-12-17 23:31:35 +0000
commit143b2e8aad4f487422830dd0585cf02096fcf620 (patch)
tree6c4d3f799c0105e515ab186637471236ce87566d /math
parent6883545d35374ca2091c8ff240669b1aeddc5979 (diff)
downloadpkgsrc-143b2e8aad4f487422830dd0585cf02096fcf620.tar.gz
Don't check pointer sign.
Diffstat (limited to 'math')
-rw-r--r--math/newmat/distinfo3
-rw-r--r--math/newmat/patches/patch-newmat6.cpp15
2 files changed, 17 insertions, 1 deletions
diff --git a/math/newmat/distinfo b/math/newmat/distinfo
index 8e9b40536fc..6e962e51c24 100644
--- a/math/newmat/distinfo
+++ b/math/newmat/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.6 2015/11/03 23:33:37 agc Exp $
+$NetBSD: distinfo,v 1.7 2016/12/17 23:31:35 joerg Exp $
SHA1 (newmat11.tar.gz) = 6416aee99873eeda7700a6d1061bda96928068e1
RMD160 (newmat11.tar.gz) = f391ba5e97edfbf1394e8626a47416cff6cf5902
SHA512 (newmat11.tar.gz) = a1f4be3fda2f74bab88ba6b27942fb6c099a3dc802e5209942602fdffec6ac83e2a75296f548b21df2ef968b7f7a51b5fa65370e079a42bccb12e66cbf453671
Size (newmat11.tar.gz) = 247137 bytes
SHA1 (patch-aa) = 6b8a51ad193d68defef00aa817ca2d9e9b3505cd
+SHA1 (patch-newmat6.cpp) = 681be945837539bd59f583ebc6a194bd659f22a1
diff --git a/math/newmat/patches/patch-newmat6.cpp b/math/newmat/patches/patch-newmat6.cpp
new file mode 100644
index 00000000000..171a65df132
--- /dev/null
+++ b/math/newmat/patches/patch-newmat6.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-newmat6.cpp,v 1.1 2016/12/17 23:31:35 joerg Exp $
+
+Check pointer for NULLness, not whether it is "positive".
+
+--- newmat6.cpp.orig 2016-12-10 15:33:44.625762128 +0000
++++ newmat6.cpp
+@@ -428,7 +428,7 @@ void CroutMatrix::operator=(const CroutM
+ {
+ if (&gm == this) { REPORT tag_val = -1; return; }
+ REPORT
+- if (indx > 0) { delete [] indx; indx = 0; }
++ if (indx) { delete [] indx; indx = 0; }
+ ((CroutMatrix&)gm).get_aux(*this);
+ Eq(gm);
+ }