Casts on lvalues are no longer permitted by gcc4.0.

CVS patchset: 7788
CVS date: 2005/03/07 14:00:18
This commit is contained in:
jbj 2005-03-07 14:00:18 +00:00
parent 9dc1b3bb80
commit ffea31644e
2 changed files with 3 additions and 3 deletions

View File

@ -476,8 +476,8 @@ static PyObject * hdr_subscript(hdrObject * s, PyObject * item)
str = PyString_AsString(item);
while (extensions->name) {
if (extensions->type == HEADER_EXT_TAG
&& !xstrcasecmp(extensions->name + 7, str)) {
(const struct headerSprintfExtension *) ext = extensions;
&& !xstrcasecmp(extensions->name + 7, str)) {
ext = extensions;
}
extensions++;
}

View File

@ -293,7 +293,7 @@ void init_rpm(void)
while (extensions->name) {
if (extensions->type == HEADER_EXT_TAG) {
(const struct headerSprintfExtension *) ext = extensions;
ext = extensions;
PyDict_SetItemString(d, (char *) extensions->name, o=PyCObject_FromVoidPtr(ext, NULL));
Py_DECREF(o);
PyDict_SetItem(dict, tag, o=PyString_FromString(ext->name + 7));