summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
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));