summaryrefslogtreecommitdiff
path: root/math/atlas/files/patch-include_atlas__genparse.h
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2022-12-15 17:15:52 +0100
committerThierry Thomas <thierry@FreeBSD.org>2022-12-15 17:22:25 +0100
commitdbbffaebd4cfbfe9f43651c419443565446a979e (patch)
treea640a868909dd4bc499a83f32de86c8e5b872a0e /math/atlas/files/patch-include_atlas__genparse.h
parentseafile: Update to 9.0.10 (diff)
math/atlas: upgrade to 3.10.3
The development iof ATLAS seems stalled, but some people still use it: upgrade it to the latest stable version, to support some more platforms. Changelog available from <https://sourceforge.net/projects/math-atlas/files/Stable/3.10.3/ChangeLog/download>. Next step: resurrect atlas-devel and upgrade it to the latest "unstable release", 3.11.41, dated 2018-10-05…
Diffstat (limited to 'math/atlas/files/patch-include_atlas__genparse.h')
-rw-r--r--math/atlas/files/patch-include_atlas__genparse.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/math/atlas/files/patch-include_atlas__genparse.h b/math/atlas/files/patch-include_atlas__genparse.h
new file mode 100644
index 000000000000..84d5b4a5e0aa
--- /dev/null
+++ b/math/atlas/files/patch-include_atlas__genparse.h
@@ -0,0 +1,12 @@
+--- include/atlas_genparse.h.orig 2016-07-28 19:42:59 UTC
++++ include/atlas_genparse.h
+@@ -163,7 +163,8 @@ static int GetDoubleArr(char *str, int N, double *d)
+ if (!str)
+ break;
+ str++;
+- assert(sscanf(str, "%le", d+i) == 1);
++ if (sscanf(str, "%le", d+i) != 1)
++ break;
+ i++;
+ }
+ return(i);