Make new gcc -Wall happy

This commit is contained in:
Guido van Rossum 1998-04-10 22:27:42 +00:00
parent 1109fbca76
commit 730806d3d9
11 changed files with 45 additions and 23 deletions

View file

@ -143,12 +143,15 @@ w_object(v, p)
{
int i, n;
if (v == NULL)
if (v == NULL) {
w_byte(TYPE_NULL, p);
else if (v == Py_None)
}
else if (v == Py_None) {
w_byte(TYPE_NONE, p);
else if (v == Py_Ellipsis)
w_byte(TYPE_ELLIPSIS, p);
}
else if (v == Py_Ellipsis) {
w_byte(TYPE_ELLIPSIS, p);
}
else if (PyInt_Check(v)) {
long x = PyInt_AS_LONG((PyIntObject *)v);
#if SIZEOF_LONG > 4