pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/newmat Don't check pointer sign.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2069536e7992
branches:  trunk
changeset: 356043:2069536e7992
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Dec 17 23:31:35 2016 +0000

description:
Don't check pointer sign.

diffstat:

 math/newmat/distinfo                  |   3 ++-
 math/newmat/patches/patch-newmat6.cpp |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 303aa347be86 -r 2069536e7992 math/newmat/distinfo
--- a/math/newmat/distinfo      Sat Dec 17 23:30:12 2016 +0000
+++ b/math/newmat/distinfo      Sat Dec 17 23:31:35 2016 +0000
@@ -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 -r 303aa347be86 -r 2069536e7992 math/newmat/patches/patch-newmat6.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/newmat/patches/patch-newmat6.cpp     Sat Dec 17 23:31:35 2016 +0000
@@ -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);
+ }



Home | Main Index | Thread Index | Old Index