Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r62989:1f81991c8cdd
Date: 2013-04-03 22:54 +0200
http://bitbucket.org/pypy/pypy/changeset/1f81991c8cdd/

Log:    fix

diff --git a/lib_pypy/_curses.py b/lib_pypy/_curses.py
--- a/lib_pypy/_curses.py
+++ b/lib_pypy/_curses.py
@@ -1328,7 +1328,7 @@
 def tigetstr(capname):
     _ensure_initialised_setupterm()
     val = lib.tigetstr(capname)
-    if val in (0, -1, ffi.NULL):
+    if int(ffi.cast("intptr_t", val)) in (0, -1):
         return None
     return ffi.string(val)
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to