diff Python/bltinmodule.c @ 13943:5780b198abc8 legacy-trunk

Clean up a couple of warnings on Win64. The downcast of the strlen size_t return value to int is safe here because in each case it previouls checked that there will be no overflow.
author Trent Mick <trentm@activestate.com>
date Sat, 12 Aug 2000 21:35:36 +0000
parents c57b574e6766
children 275bc4f9d50d
line wrap: on
line diff
--- a/Python/bltinmodule.c	Sat Aug 12 20:58:11 2000 +0000
+++ b/Python/bltinmodule.c	Sat Aug 12 21:35:36 2000 +0000
@@ -430,7 +430,7 @@
 					    NULL))
 			return NULL;
 		s = s_buffer;
-		len = strlen(s);
+		len = (int)strlen(s);
 	}
 	else if (PyObject_AsCharBuffer(v, &s, &len)) {
 		PyErr_SetString(PyExc_TypeError,