diff Objects/classobject.c @ 13089:bf1ebe869878 legacy-trunk

Trent Mick: change a few casts for Win64 compatibility.
author Guido van Rossum <guido@python.org>
date Wed, 28 Jun 2000 21:57:18 +0000
parents 8f79c5b69e0a
children f61b4a98b972
line wrap: on
line diff
--- a/Objects/classobject.c	Wed Jun 28 21:57:05 2000 +0000
+++ b/Objects/classobject.c	Wed Jun 28 21:57:18 2000 +0000
@@ -283,7 +283,7 @@
 {
 	if (v == NULL || !PyString_Check(v))
 		return "__name__ must be a string object";
-	if ((long)strlen(PyString_AS_STRING(v)) != PyString_GET_SIZE(v))
+	if (strlen(PyString_AS_STRING(v)) != (size_t)PyString_GET_SIZE(v))
 		return "__name__ must not contain null bytes";
 	set_slot(&c->cl_name, v);
 	return "";