Cast an Py_ssize_t to int, to avoid a compiler warning.

This commit is contained in:
Thomas Heller 2006-03-14 20:39:27 +00:00
parent 6ea6e204a9
commit ab906a562b
1 changed files with 2 additions and 2 deletions

View File

@ -251,10 +251,10 @@ CField_repr(CFieldObject *self)
if (bits)
result = PyString_FromFormat("<Field type=%s, ofs=%d:%d, bits=%d>",
name, self->offset, size, bits);
name, (int)self->offset, size, bits);
else
result = PyString_FromFormat("<Field type=%s, ofs=%d, size=%d>",
name, self->offset, size);
name, (int)self->offset, size);
return result;
}