Author: Armin Rigo <[email protected]>
Branch:
Changeset: r72481:71ab3dcb1309
Date: 2014-07-25 11:18 +0200
http://bitbucket.org/pypy/pypy/changeset/71ab3dcb1309/
Log: Issue #1823: fix _m_ispad(), which always returned 0
diff --git a/lib_pypy/_curses.py b/lib_pypy/_curses.py
--- a/lib_pypy/_curses.py
+++ b/lib_pypy/_curses.py
@@ -309,11 +309,9 @@
#endif
int _m_ispad(WINDOW *win) {
-#if defined WINDOW_HAS_FLAGS
+ // <curses.h> may not have _flags (and possibly _ISPAD),
+ // but for now let's assume that <ncurses.h> always has it
return (win->_flags & _ISPAD);
-#else
- return 0;
-#endif
}
void _m_getsyx(int *yx) {
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit