diff options
author | Guido van Rossum <guido@python.org> | 1999-03-19 21:50:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-03-19 21:50:11 (GMT) |
commit | 481ac8811e41f509e3a4ca6ef0151ce69671b43e (patch) | |
tree | c3da60ce38b251eb1851b13dbb47a0c78e02d392 /Modules/arraymodule.c | |
parent | 8f0fa9e47f6bdad5bdc6155a0c83976d1f891fd7 (diff) | |
download | cpython-481ac8811e41f509e3a4ca6ef0151ce69671b43e.zip cpython-481ac8811e41f509e3a4ca6ef0151ce69671b43e.tar.gz cpython-481ac8811e41f509e3a4ca6ef0151ce69671b43e.tar.bz2 |
Use an unsigned cast to avoid a warning in VC++.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index bb0a9ed..8bd9a55 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -939,7 +939,8 @@ array_fromfile(self, args) size_t newbytes; /* Be careful here about overflow */ if ((newlength = self->ob_size + n) <= 0 || - (newbytes = newlength * itemsize) / itemsize != newlength) + (newbytes = newlength * itemsize) / itemsize != + (size_t)newlength) goto nomem; PyMem_RESIZE(item, char, newbytes); if (item == NULL) { |