diff options
| author | John Lee <john_lee@openmoko.org> | 2008-02-27 07:50:52 +0000 |
|---|---|---|
| committer | Openmoko anonymizer key <devel@lists.openmoko.org> | 2008-02-27 07:50:52 +0000 |
| commit | d6f3635f2e2baa680d878461fc8fa9b68c51162b (patch) | |
| tree | a07627fc6746f21a02a543381681f1cb1320b38d /packages/gnuplot/gnuplot-4.0.0/matrix.patch | |
| parent | b14906e8fa695a85b9ddf27838c959be1c8a5fad (diff) | |
| parent | 9d22cb8106117d2d923bf7b2c263bf9e31b5305f (diff) | |
merge of '8dccbf106093aaa7b62b2a96962945185534c923'
and 'c50825ba187c292f591cf43c91216cebffb5e290'
Diffstat (limited to 'packages/gnuplot/gnuplot-4.0.0/matrix.patch')
| -rw-r--r-- | packages/gnuplot/gnuplot-4.0.0/matrix.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/gnuplot/gnuplot-4.0.0/matrix.patch b/packages/gnuplot/gnuplot-4.0.0/matrix.patch new file mode 100644 index 0000000000..10f56d9f6a --- /dev/null +++ b/packages/gnuplot/gnuplot-4.0.0/matrix.patch @@ -0,0 +1,17 @@ +--- gnuplot-4.0.0/src/matrix.c.old 2004-04-13 18:23:58.000000000 +0100 ++++ gnuplot-4.0.0/src/matrix.c 2005-03-01 12:38:07.068232748 +0000 +@@ -290,9 +290,12 @@ + *d = 1.0; + for (ar = a, lim = &(a[n]); ar < lim; ar++) { + large = 0.0; +- for (ac = *ar, limc = &(ac[n]); ac < limc;) +- if ((temp = fabs(*ac++)) > large) ++ for (ac = *ar, limc = &(ac[n]); ac < limc;){ ++ temp = *ac++; ++ temp = fabs(temp); ++ if (temp > large) + large = temp; ++ } + if (large == 0.0) + int_error(NO_CARET, "Singular matrix in LU-DECOMP"); + *dp++ = 1 / large; |
