summaryrefslogtreecommitdiffstats
path: root/Objects/classobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-12 15:03:58 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-12 15:03:58 (GMT)
commite0fdf6f1a8066272de01ce02500ea53738b28f90 (patch)
treea8ea8fbd11fa00603024946cbb5a1f5b1dd93c4a /Objects/classobject.c
parentc3da02e9041cfaf8e6e43b726f23b2676a05eb1a (diff)
downloadcpython-e0fdf6f1a8066272de01ce02500ea53738b28f90.zip
cpython-e0fdf6f1a8066272de01ce02500ea53738b28f90.tar.gz
cpython-e0fdf6f1a8066272de01ce02500ea53738b28f90.tar.bz2
Keep Microsoft's compiler happy.
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r--Objects/classobject.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index 61e50be..f6fc5d8 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 "";