git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7644 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -34,7 +34,8 @@ void *Memory::smalloc(bigint nbytes, const char *name)
|
||||
|
||||
#if defined(LAMMPS_MEMALIGN)
|
||||
void *ptr;
|
||||
posix_memalign(&ptr, LAMMPS_MEMALIGN, nbytes);
|
||||
int retval = posix_memalign(&ptr, LAMMPS_MEMALIGN, nbytes);
|
||||
if (retval) ptr = NULL;
|
||||
#else
|
||||
void *ptr = malloc(nbytes);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user