(xrealloc): Change cast to match return type.
This commit is contained in:
parent
0b40717e5b
commit
5391a863dc
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ xrealloc (ptr, size)
|
|||
int size;
|
||||
{
|
||||
long *result = (long *) realloc (ptr, ((unsigned) size));
|
||||
if (result == ((char *) NULL))
|
||||
if (result == ((long *) NULL))
|
||||
fatal ("virtual memory exhausted");
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue