Skip to content
Snippets Groups Projects
Unverified Commit 0ca5ad23 authored by noguchi-k's avatar noguchi-k Committed by GitHub
Browse files

denovogear: fixed comparison error (#15638)

parent 953bd04c
No related branches found
No related tags found
No related merge requests found
--- 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);
}
......@@ -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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment