[Python-checkins] cpython: downcast len to int. The code has already checked that len < INT_MAX
christian.heimes
python-checkins at python.org
Fri Nov 22 00:34:37 CET 2013
http://hg.python.org/cpython/rev/97b84261b794
changeset: 87322:97b84261b794
user: Christian Heimes <christian at cheimes.de>
date: Fri Nov 22 00:34:18 2013 +0100
summary:
downcast len to int. The code has already checked that len < INT_MAX
files:
Modules/_ssl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2520,7 +2520,7 @@
return -1;
}
- biobuf = BIO_new_mem_buf(data, len);
+ biobuf = BIO_new_mem_buf(data, (int)len);
if (biobuf == NULL) {
_setSSLError("Can't allocate buffer", 0, __FILE__, __LINE__);
return -1;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list