#3 gcc 2.95 compilation fix

closed
nobody
None
5
2008-05-13
2007-09-20
Anonymous
No

These revision numbers aren't correct.

--- immnodeset.c (revision 35259)
+++ immnodeset.c (working copy)
@@ -406,6 +406,8 @@
static PyObject *
immnodeset_obj_at(NyNodeSetObject *v, PyObject *obj)
{
+ PyObject **lo;
+ PyObject **hi;
Py_uintptr_t addr =
#if SIZEOF_VOID_P <= SIZEOF_LONG
PyInt_AsUnsignedLongMask(obj);
@@ -415,8 +417,8 @@
if (addr == (Py_uintptr_t) -1 && PyErr_Occurred())
return 0;

- PyObject **lo = &v->u.nodes[0];
- PyObject **hi = &v->u.nodes[v->ob_size];
+ lo = &v->u.nodes[0];
+ hi = &v->u.nodes[v->ob_size];
while (lo < hi) {
PyObject **cur = lo + (hi - lo) / 2;
if ((Py_uintptr_t)(*cur) == addr) {

Discussion

  • Logged In: YES
    user_id=356603
    Originator: NO

    Thanks for the report. However, I have no clue what those revision numbers are. Can you please be more specific?

    Regards / Sverker Nilsson

     
  • Logged In: YES
    user_id=356603
    Originator: NO

    TO BE CLOSED

    I will close this item soon if nobody has any objections.

     
    • status: open --> closed