diff options
author | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
commit | 3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch) | |
tree | 1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/align.h | |
parent | d99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff) |
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/align.h')
-rw-r--r-- | graphics/asymptote/align.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics/asymptote/align.h b/graphics/asymptote/align.h index f6f2e94f68..fe891deb05 100644 --- a/graphics/asymptote/align.h +++ b/graphics/asymptote/align.h @@ -18,8 +18,8 @@ #ifdef __Array_h__ namespace Array { -static const array1<Complex> NULL1; -static const array2<Complex> NULL2; +static const array1<Complex> NULL1; +static const array2<Complex> NULL2; static const array3<Complex> NULL3; } @@ -64,9 +64,9 @@ inline void newAlign(T *&v, size_t len, size_t align) const char *nomem="Memory limits exceeded"; #ifdef HAVE_POSIX_MEMALIGN int rc=posix_memalign(&mem,align,len*sizeof(T)); -#else +#else int rc=posix_memalign0(&mem,align,len*sizeof(T)); -#endif +#endif if(rc == EINVAL) std::cerr << invalid << std::endl; if(rc == ENOMEM) std::cerr << nomem << std::endl; v=(T *) mem; @@ -81,7 +81,7 @@ inline void deleteAlign(T *v, size_t len) free(v); #else free0(v); -#endif +#endif } } @@ -115,7 +115,7 @@ inline void deleteAlign(T *p) free(p); #else Array::free0(p); -#endif +#endif } } |