[Checkins] SVN: BTrees/branches/py3k/ Propitiate compiler.
Tres Seaver
cvs-admin at zope.org
Fri Dec 14 22:37:19 UTC 2012
Log message for revision 128669:
Propitiate compiler.
Changed:
_U BTrees/branches/py3k/
U BTrees/branches/py3k/BTrees/BTreeItemsTemplate.c
-=-
Modified: BTrees/branches/py3k/BTrees/BTreeItemsTemplate.c
===================================================================
--- BTrees/branches/py3k/BTrees/BTreeItemsTemplate.c 2012-12-14 22:37:18 UTC (rev 128668)
+++ BTrees/branches/py3k/BTrees/BTreeItemsTemplate.c 2012-12-14 22:37:18 UTC (rev 128669)
@@ -427,7 +427,13 @@
{
Py_ssize_t start, stop, step, slicelength;
- if (PySlice_GetIndicesEx(key, len,
+#ifdef PY3K
+#define SLICEOBJ(x) (x)
+#else
+#define SLICEOBJ(x) (PySliceObject*)(x)
+#endif
+
+ if (PySlice_GetIndicesEx(SLICEOBJ(key), len,
&start, &stop, &step, &slicelength) < 0)
{
return NULL;
More information about the checkins
mailing list