From: Libor Pechacek <lpechacek@gmx.com>
Date: Wed, 9 Jun 2021 16:08:03 +0200
Subject: [PATCH] Fix build error reported by GCC 10 and later
Patch-mainline: no, to be submitted
From the context, it seems obvious that a test for nullptr
was meant at this place.
--
newmat6.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
a
|
b
|
void CroutMatrix::operator=(const CroutM
|
428 | 428 | { |
429 | 429 | if (&gm == this) { REPORT tag_val = -1; return; } |
430 | 430 | REPORT |
431 | | if (indx > 0) { delete [] indx; indx = 0; } |
| 431 | if (indx) { delete [] indx; indx = 0; } |
432 | 432 | ((CroutMatrix&)gm).get_aux(*this); |
433 | 433 | Eq(gm); |
434 | 434 | } |