]> granicus.if.org Git - python/commitdiff
Keep Microsoft's compiler happy.
authorGuido van Rossum <guido@python.org>
Fri, 12 Jun 1998 15:03:58 +0000 (15:03 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 12 Jun 1998 15:03:58 +0000 (15:03 +0000)
Objects/classobject.c

index 61e50be003c2419d236b083e6de7f9dcc4c85045..f6fc5d8f31bc4ea7ef385c2aca56f1cbb9db0378 100644 (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 "";