Keep Microsoft's compiler happy.

This commit is contained in:
Guido van Rossum 1998-06-12 15:03:58 +00:00
parent c3da02e904
commit e0fdf6f1a8
1 changed files with 1 additions and 4 deletions

View File

@ -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 "";