Ticket #29835: patch-src-cxx-cxxsupport-arr.h.diff
File patch-src-cxx-cxxsupport-arr.h.diff, 428 bytes (added by lsinger@…, 13 years ago) |
---|
-
src/cxx/cxxsupport/arr.h
old new 54 54 using namespace std; 55 55 if (sz==0) return 0; 56 56 void *res; 57 planck_assert( posix_memalign(&res,align,sz*sizeof(T))==0,57 planck_assert((res = valloc(sz*sizeof(T))), 58 58 "error in posix_memalign()"); 59 59 return static_cast<T *>(res); 60 60 }