ports/math/atlas/files/patch-include_atlas__genparse.h
Thierry Thomas dbbffaebd4 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…
2022-12-15 17:22:25 +01:00

12 lines
344 B
C

--- 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);