Trent Mick: change a few casts for Win64 compatibility.

This commit is contained in:
Guido van Rossum 2000-06-28 21:57:18 +00:00
parent 2c9cb7aff3
commit ad89bbcd88
2 changed files with 2 additions and 2 deletions

View file

@ -283,7 +283,7 @@ set_name(c, v)
{
if (v == NULL || !PyString_Check(v))
return "__name__ must be a string object";
if ((long)strlen(PyString_AS_STRING(v)) != PyString_GET_SIZE(v))
if (strlen(PyString_AS_STRING(v)) != (size_t)PyString_GET_SIZE(v))
return "__name__ must not contain null bytes";
set_slot(&c->cl_name, v);
return "";