summaryrefslogtreecommitdiff
path: root/demo/_curses.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2012-07-28 13:03:38 +0200
committerArmin Rigo <arigo@tunes.org>2012-07-28 13:03:38 +0200
commit7371d496bcd6c2803822ced2c99a182202e9ff26 (patch)
tree301f57c54b737fb785a4cb095c2569d4e9464a73 /demo/_curses.py
parent4b742387abadeb921d08b0b353e5c33bef489ccb (diff)
downloadcffi-7371d496bcd6c2803822ced2c99a182202e9ff26.tar.gz
Bah. Fix the demos for the updated way of 'ffi.new()'.
Diffstat (limited to 'demo/_curses.py')
-rw-r--r--demo/_curses.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/_curses.py b/demo/_curses.py
index 369c63c..4b81b1f 100644
--- a/demo/_curses.py
+++ b/demo/_curses.py
@@ -210,7 +210,7 @@ def setupterm(term=ffi.NULL, fd=-1):
if fd < 0:
import sys
fd = sys.stdout.fileno()
- err = ffi.new("int")
+ err = ffi.new("int *")
if lib.setupterm(term, fd, err) == ERR:
if err[0] == 0:
s = "setupterm: could not find terminal"