Skip to content
Snippets Groups Projects
Commit c06c585f authored by Matt Harbison's avatar Matt Harbison
Browse files

cext: stop preprocessing a partial function call

MSVC++ 14 yelled:

    mercurial/cext/revlog.c(1913): fatal error C1057: unexpected end of file in
                                   macro expansion

At this point, the C extensions build (with warnings), and it dies in win32.py
because the `_fields_` strings in the ctypes classes are being converted to
bytes by the source translator.
parent ec68135a
No related branches found
No related tags found
No related merge requests found
...@@ -1911,5 +1911,6 @@ ...@@ -1911,5 +1911,6 @@
/* Argument changed from PySliceObject* to PyObject* in Python 3. */ /* Argument changed from PySliceObject* to PyObject* in Python 3. */
#ifdef IS_PY3K #ifdef IS_PY3K
if (PySlice_GetIndicesEx(item, length, if (PySlice_GetIndicesEx(item, length,
&start, &stop, &step, &slicelength) < 0)
#else #else
if (PySlice_GetIndicesEx((PySliceObject*)item, length, if (PySlice_GetIndicesEx((PySliceObject*)item, length,
...@@ -1914,3 +1915,4 @@ ...@@ -1914,3 +1915,4 @@
#else #else
if (PySlice_GetIndicesEx((PySliceObject*)item, length, if (PySlice_GetIndicesEx((PySliceObject*)item, length,
&start, &stop, &step, &slicelength) < 0)
#endif #endif
...@@ -1916,5 +1918,4 @@ ...@@ -1916,5 +1918,4 @@
#endif #endif
&start, &stop, &step, &slicelength) < 0)
return -1; return -1;
if (slicelength <= 0) if (slicelength <= 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment