mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
math/newmat: unbreak with clang 4.0
newmat6.cpp:431:13: error: ordered comparison between pointer and zero ('int *' and 'int') if (indx > 0) { delete [] indx; indx = 0; } ~~~~ ^ ~ Reported by: antoine (via exp-run)
This commit is contained in:
parent
f7831b80a4
commit
f26bc72ae5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432983
11
math/newmat/files/patch-newmat6.cpp
Normal file
11
math/newmat/files/patch-newmat6.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- newmat6.cpp.orig 2006-09-09 12:51:25 UTC
|
||||
+++ 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user