diff options
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/utils/asymptote/base/math.asy | 2 | ||||
-rw-r--r-- | Build/source/utils/asymptote/runlabel.in | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/base/math.asy b/Build/source/utils/asymptote/base/math.asy index 69863634210..47044a75df1 100644 --- a/Build/source/utils/asymptote/base/math.asy +++ b/Build/source/utils/asymptote/base/math.asy @@ -175,7 +175,7 @@ int[][] segment(bool[] b) int[][] S=segmentlimits(b); return sequence(new int[](int i) { return sequence(S[i][0],S[i][1]); - },S[0].length); + },S.length); } // If the sorted array a does not contain x, insert it sequentially, diff --git a/Build/source/utils/asymptote/runlabel.in b/Build/source/utils/asymptote/runlabel.in index 1b22683b907..961e2e9e65a 100644 --- a/Build/source/utils/asymptote/runlabel.in +++ b/Build/source/utils/asymptote/runlabel.in @@ -121,9 +121,9 @@ array *readpath(const string& psname, bool keep, if(s.empty() || !gs.running()) break; gs << newl; -#ifdef __APPLE__ +// Workaround broken stringstream container in MacOS 10.9 libc++. +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__ ) for(string::iterator i=s.begin(); i != s.end(); ++i) { - // Workaround broken stringstream container in MacOS 10.9 libc++. if(isalpha(*i) && *i != 'e') {buf << " ";} buf << *i; } |