summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-09 19:41:24 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-09 19:41:24 (GMT)
commit2095d24842e34f7f85d5025767134badbf9dd44f (patch)
tree724dd51fb529ce578a677e7c0a304619c068a39c /Objects/listobject.c
parent644a12b00ce6a361089b488aa8096a6c86b52275 (diff)
downloadcpython-2095d24842e34f7f85d5025767134badbf9dd44f.zip
cpython-2095d24842e34f7f85d5025767134badbf9dd44f.tar.gz
cpython-2095d24842e34f7f85d5025767134badbf9dd44f.tar.bz2
Tweaks to keep the Microsoft compiler quiet.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 8aca28d..e2f6fd8 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -67,7 +67,7 @@ newlistobject(size)
}
nbytes = size * sizeof(object *);
/* Check for overflow */
- if (nbytes / sizeof(object *) != size) {
+ if (nbytes / sizeof(object *) != (size_t)size) {
return err_nomem();
}
op = (listobject *) malloc(sizeof(listobject));