Revert rev 43041, which introduced the "z" format qualifier

unique to Python 2.5.
This commit is contained in:
Tim Peters 2006-03-15 09:17:20 +00:00
parent ab8aeba517
commit 8ea61f1a83
1 changed files with 4 additions and 4 deletions

View File

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