git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6542 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -36,7 +36,7 @@ void *Memory::smalloc(bigint nbytes, const char *name)
|
||||
void *ptr = malloc(nbytes);
|
||||
if (ptr == NULL) {
|
||||
char str[128];
|
||||
sprintf(str,"Failed to allocate " BIGINT_FORMAT "bytes for array %s",
|
||||
sprintf(str,"Failed to allocate " BIGINT_FORMAT " bytes for array %s",
|
||||
nbytes,name);
|
||||
error->one(str);
|
||||
}
|
||||
@ -57,7 +57,7 @@ void *Memory::srealloc(void *ptr, bigint nbytes, const char *name)
|
||||
ptr = realloc(ptr,nbytes);
|
||||
if (ptr == NULL) {
|
||||
char str[128];
|
||||
sprintf(str,"Failed to reallocate " BIGINT_FORMAT "bytes for array %s",
|
||||
sprintf(str,"Failed to reallocate " BIGINT_FORMAT " bytes for array %s",
|
||||
nbytes,name);
|
||||
error->one(str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user