]> granicus.if.org Git - python/commitdiff
Fix compilation of the curses module (broken by issue #16612).
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 19 Oct 2013 07:45:48 +0000 (10:45 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 19 Oct 2013 07:45:48 +0000 (10:45 +0300)
Modules/_cursesmodule.c

index c61f67f074533af1a1adc0fb223d618d42413033..1f192dc73c8b0611b6e520a213232d80844f6186 100644 (file)
@@ -676,7 +676,7 @@ curses_window_addch_impl(PyObject *self, int group_left_1, int x, int y, PyObjec
     }
     else
 #else
-    type = PyCurses_ConvertToCchar_t(cwself, chobj, &cch);
+    type = PyCurses_ConvertToCchar_t(cwself, ch, &cch);
 #endif
     if (type == 1) {
         funcname = "addch";