mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Tweaks to keep the Microsoft compiler quiet.
This commit is contained in:
parent
644a12b00c
commit
2095d24842
5 changed files with 18 additions and 18 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue