Tweaks to keep the Microsoft compiler quiet.

This commit is contained in:
Guido van Rossum 1997-04-09 19:41:24 +00:00
parent 644a12b00c
commit 2095d24842
5 changed files with 18 additions and 18 deletions

View file

@ -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));