Commit e2143c38 authored by Tim Peters's avatar Tim Peters

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

unique to Python 2.5.
parent 9cbcb7b4
...@@ -250,11 +250,11 @@ CField_repr(CFieldObject *self) ...@@ -250,11 +250,11 @@ CField_repr(CFieldObject *self)
name = ((PyTypeObject *)self->proto)->tp_name; name = ((PyTypeObject *)self->proto)->tp_name;
if (bits) if (bits)
result = PyString_FromFormat("<Field type=%s, ofs=%zd:%d, bits=%d>", result = PyString_FromFormat("<Field type=%s, ofs=%d:%d, bits=%d>",
name, self->offset, size, bits); name, (int)self->offset, size, bits);
else else
result = PyString_FromFormat("<Field type=%s, ofs=%zd, size=%d>", result = PyString_FromFormat("<Field type=%s, ofs=%d, size=%d>",
name, self->offset, size); name, (int)self->offset, size);
return result; return result;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment