That would do it :). This is why we need automatic .h -> .pxd
declarations. Also, it's been thrown around a couple of times that it
may be worth making "cdef foo()" a warning, forcing the user to
explicitly declare "cdef object foo()" (or, in your case, "cdef int
foo() :-).

On Mon, Mar 7, 2011 at 1:24 PM, Robert Miller <[email protected]> wrote:
> The problem: I had a C function declared as "int foo()" but was
> importing it in Cython as "cdef foo()". Thus when foo returned 0,
> Cython thought this was a NULL pointer and raised the error above.
>
> Thanks for the help, everyone.
>
> --
> To post to this group, send an email to [email protected]
> To unsubscribe from this group, send an email to 
> [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to