From 2326180db9d1721ba30c8b459f6f526ef78a54a6 Mon Sep 17 00:00:00 2001 From: noguchi-k Date: Mon, 23 Mar 2020 17:51:35 +0900 Subject: [PATCH] fixed comparison error --- src/contrib/newmat/newmat6.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contrib/newmat/newmat6.cpp b/src/contrib/newmat/newmat6.cpp index ef89b430..3bb3fb31 100644 --- a/src/contrib/newmat/newmat6.cpp +++ b/src/contrib/newmat/newmat6.cpp @@ -428,7 +428,7 @@ void CroutMatrix::operator=(const CroutMatrix& gm) { 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); }