Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit df75d0d

Browse filesBrowse files
committed
FIX: correct macro logic in file_compat.h
Following up on #11635 / #11636 another bug was found. PY3K is always defined in mplutils.h so we were always going through the nominally (py3 + pypy) only code path on all version of python which exposes an issue with fflush (eventually called by py27 internals) on BSD systems.
1 parent 00daa8f commit df75d0d
Copy full SHA for df75d0d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/file_compat.h

Copy file name to clipboardExpand all lines: src/file_compat.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extern "C" {
4848
/*
4949
* PyFile_* compatibility
5050
*/
51-
#if defined(PY3K) | defined(PYPY_VERSION)
51+
#if PY3K | defined(PYPY_VERSION)
5252

5353
/*
5454
* Get a FILE* handle to the file represented by the Python object

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.