mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Make new gcc -Wall happy
This commit is contained in:
parent
1109fbca76
commit
730806d3d9
11 changed files with 45 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue