Fix mixup about PyErr_NoMemory() prototype.

This commit is contained in:
Guido van Rossum 1997-08-12 14:54:54 +00:00
parent 741689d5f3
commit ea46e4d93c
1 changed files with 8 additions and 4 deletions

View File

@ -699,8 +699,10 @@ Py_Malloc(nbytes)
p = malloc(nbytes);
if (p != NULL)
return p;
else
return PyErr_NoMemory();
else {
PyErr_NoMemory();
return NULL;
}
}
ANY *
@ -715,8 +717,10 @@ Py_Realloc(p, nbytes)
p = realloc(p, nbytes);
if (p != NULL)
return p;
else
return PyErr_NoMemory();
else {
PyErr_NoMemory();
return NULL;
}
}
void