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)
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;
}
......
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