From e0fdf6f1a8066272de01ce02500ea53738b28f90 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 12 Jun 1998 15:03:58 +0000 Subject: [PATCH] Keep Microsoft's compiler happy. --- Objects/classobject.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Objects/classobject.c b/Objects/classobject.c index 61e50be003c..f6fc5d8f31b 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -250,7 +250,6 @@ set_bases(c, v) PyClassObject *c; PyObject *v; { - PyObject *temp; int i, n; if (v == NULL || !PyTuple_Check(v)) @@ -272,11 +271,9 @@ set_name(c, v) PyClassObject *c; PyObject *v; { - PyObject *temp; - if (v == NULL || !PyString_Check(v)) return "__name__ must be a string object"; - if (strlen(PyString_AS_STRING(v)) != PyString_GET_SIZE(v)) + if ((long)strlen(PyString_AS_STRING(v)) != PyString_GET_SIZE(v)) return "__name__ must not contain null bytes"; set_slot(&c->cl_name, v); return "";