From: <wme...@us...> - 2009-09-05 10:55:01
|
Revision: 6755 http://jython.svn.sourceforge.net/jython/?rev=6755&view=rev Author: wmeissner Date: 2009-09-05 10:54:53 +0000 (Sat, 05 Sep 2009) Log Message: ----------- Treat None as a VOID type Modified Paths: -------------- branches/ctypes-jffi/src/org/python/modules/jffi/CType.java Modified: branches/ctypes-jffi/src/org/python/modules/jffi/CType.java =================================================================== --- branches/ctypes-jffi/src/org/python/modules/jffi/CType.java 2009-09-05 10:46:25 UTC (rev 6754) +++ branches/ctypes-jffi/src/org/python/modules/jffi/CType.java 2009-09-05 10:54:53 UTC (rev 6755) @@ -95,6 +95,8 @@ static CType typeOf(PyObject obj) { if (obj instanceof CType) { return (CType) obj; + } else if (obj == Py.None) { + return CType.VOID; } PyObject jffi_type = obj.__getattr__("_jffi_type"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |