Commit a73aca16 authored by Guido van Rossum's avatar Guido van Rossum

Keep Microsoft's compiler happy.

parent c2aa82a4
......@@ -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 "";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment