diff options
author | joerg <joerg@pkgsrc.org> | 2016-12-17 23:31:35 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2016-12-17 23:31:35 +0000 |
commit | e004920a7893f54f29ec01143775aff9f3301b9a (patch) | |
tree | f0f3ce11313e92ba43fa6c1fc22f354873eaf76b /math | |
parent | 7a655a9d336af0696ce33f2e5b36fefe05a7a29c (diff) | |
download | pkgsrc-e004920a7893f54f29ec01143775aff9f3301b9a.tar.gz |
Don't check pointer sign.
Diffstat (limited to 'math')
-rw-r--r-- | math/newmat/distinfo | 3 | ||||
-rw-r--r-- | math/newmat/patches/patch-newmat6.cpp | 15 |
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); + } |