diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-03-08 01:08:48 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-03-08 01:08:48 (GMT) |
commit | 8f40860944aab8ffbd99088fd483f5124c5046d0 (patch) | |
tree | 7d890161e7592c84a89e5036a5966398d2afc85e /Modules/_cursesmodule.c | |
parent | 9a6338651eb2f474661602a81ee42958fd42d5d4 (diff) | |
download | cpython-8f40860944aab8ffbd99088fd483f5124c5046d0.zip cpython-8f40860944aab8ffbd99088fd483f5124c5046d0.tar.gz cpython-8f40860944aab8ffbd99088fd483f5124c5046d0.tar.bz2 |
Close #14223: curses.addch() is no more limited to the range 0-255 when the
Python curses is not linked to libncursesw. It was a regression introduced in
Python 3.3a1.
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r-- | Modules/_cursesmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 64178d7..40b6e68 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -340,7 +340,7 @@ PyCurses_ConvertToCchar_t(PyCursesWindowObject *win, PyObject *obj, #endif { *ch = (chtype)value; - if ((long)*ch != value || value < 0 || value > 255) { + if ((long)*ch != value) { PyErr_Format(PyExc_OverflowError, "byte doesn't fit in chtype"); return 0; |