summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/denovogear/newmat6.cpp.patch11
-rw-r--r--var/spack/repos/builtin/packages/denovogear/package.py2
2 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/denovogear/newmat6.cpp.patch b/var/spack/repos/builtin/packages/denovogear/newmat6.cpp.patch
new file mode 100644
index 0000000000..36d2e240cd
--- /dev/null
+++ b/var/spack/repos/builtin/packages/denovogear/newmat6.cpp.patch
@@ -0,0 +1,11 @@
+--- spack-src/src/contrib/newmat/newmat6.cpp.org 2020-03-19 14:06:13.679032667 +0900
++++ spack-src/src/contrib/newmat/newmat6.cpp 2020-03-19 14:07:34.267492838 +0900
+@@ -428,7 +428,7 @@
+ {
+ if (&gm == this) { REPORT tag_val = -1; return; }
+ REPORT
+- if (indx > 0) { delete [] indx; indx = 0; }
++ if (indx != NULL) { delete [] indx; indx = 0; }
+ ((CroutMatrix&)gm).get_aux(*this);
+ Eq(gm);
+ }
diff --git a/var/spack/repos/builtin/packages/denovogear/package.py b/var/spack/repos/builtin/packages/denovogear/package.py
index 8f475492c1..bc683febef 100644
--- a/var/spack/repos/builtin/packages/denovogear/package.py
+++ b/var/spack/repos/builtin/packages/denovogear/package.py
@@ -25,3 +25,5 @@ class Denovogear(CMakePackage):
depends_on('zlib', type=('link'))
patch('stream-open.patch', when='@:1.1.1')
+ # fix: ordered comparison between pointer and zero.
+ patch('newmat6.cpp.patch')