Rev 3082: Stop using const, since PyObject_Compare doesn't like it. (Lukáš) in http://bzr.arbash-meinel.com/branches/bzr/0.93-dev/patience_tuples

John Arbash Meinel john at arbash-meinel.com
Wed Dec 19 15:12:20 GMT 2007


At http://bzr.arbash-meinel.com/branches/bzr/0.93-dev/patience_tuples

------------------------------------------------------------
revno: 3082
revision-id:john at arbash-meinel.com-20071219151157-stcd2kh9chb4qo61
parent: john at arbash-meinel.com-20071205140908-d02s0wgd2wssygwv
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: patience_tuples
timestamp: Wed 2007-12-19 09:11:57 -0600
message:
  Stop using const, since PyObject_Compare doesn't like it. (Lukáš)
modified:
  bzrlib/_patiencediff_c.c       _patiencediff_c.c-20070721205602-q3imkipwlgagp3cy-1
-------------- next part --------------
=== modified file 'bzrlib/_patiencediff_c.c'
--- a/bzrlib/_patiencediff_c.c	2007-12-05 14:09:08 +0000
+++ b/bzrlib/_patiencediff_c.c	2007-12-19 15:11:57 +0000
@@ -74,7 +74,7 @@
     Py_ssize_t next;   /* next line from the same equivalence class */
     Py_ssize_t equiv;  /* equivalence class */
     Py_ssize_t len;
-    const PyObject *data;
+    PyObject *data;
 };
 
 
@@ -152,7 +152,7 @@
 compare_lines(struct line *a, struct line *b)
 {
     return ((a->hash != b->hash) || (a->len != b->len)
-            || PyObject_Compare((PyObject *)a->data, (PyObject *)b->data));
+            || PyObject_Compare(a->data, b->data));
 }
 
 



More information about the bazaar-commits mailing list