Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0fdf6f

Browse files
committed
Keep Microsoft's compiler happy.
1 parent c3da02e commit e0fdf6f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Objects/classobject.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ set_bases(c, v)
250250
PyClassObject *c;
251251
PyObject *v;
252252
{
253-
PyObject *temp;
254253
int i, n;
255254

256255
if (v == NULL || !PyTuple_Check(v))
@@ -272,11 +271,9 @@ set_name(c, v)
272271
PyClassObject *c;
273272
PyObject *v;
274273
{
275-
PyObject *temp;
276-
277274
if (v == NULL || !PyString_Check(v))
278275
return "__name__ must be a string object";
279-
if (strlen(PyString_AS_STRING(v)) != PyString_GET_SIZE(v))
276+
if ((long)strlen(PyString_AS_STRING(v)) != PyString_GET_SIZE(v))
280277
return "__name__ must not contain null bytes";
281278
set_slot(&c->cl_name, v);
282279
return "";

0 commit comments

Comments
 (0)