summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-10 22:27:42 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-10 22:27:42 (GMT)
commit730806d3d9bd8c54466e4a864b2b1f94df4413d2 (patch)
tree95ef041ad6e66f6cfbee3b6f84de6542c2cd36a7 /Python/marshal.c
parent1109fbca76d08bb2f11f2899580d2ab7dbe796fa (diff)
downloadcpython-730806d3d9bd8c54466e4a864b2b1f94df4413d2.zip
cpython-730806d3d9bd8c54466e4a864b2b1f94df4413d2.tar.gz
cpython-730806d3d9bd8c54466e4a864b2b1f94df4413d2.tar.bz2
Make new gcc -Wall happy
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 75a20c2..9daeeb3 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -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