From: Peter Johnson Date: Sat, 25 Jun 2011 21:58:27 +0000 (-0700) Subject: Fix build with recent Cython. X-Git-Tag: v1.2.0~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f6162a0ae7691246677cd63e1e06dfe7264ce2b;p=yasm Fix build with recent Cython. [#216 state:resolved] --- diff --git a/tools/python-yasm/yasm.pyx b/tools/python-yasm/yasm.pyx index f9c6ee4d..adbc734e 100644 --- a/tools/python-yasm/yasm.pyx +++ b/tools/python-yasm/yasm.pyx @@ -97,7 +97,7 @@ cdef void *__get_voidp(object obj, object forclass) except NULL: # cdef class __assoc_data_callback: cdef yasm_assoc_data_callback *cb - def __new__(self, destroy, print_): + def __cinit__(self, destroy, print_): self.cb = malloc(sizeof(yasm_assoc_data_callback)) self.cb.destroy = PyCObject_AsVoidPtr(destroy) #self.cb.print_ = PyCObject_AsVoidPtr(print_) @@ -107,7 +107,7 @@ cdef class __assoc_data_callback: cdef class Register: cdef unsigned long reg - def __new__(self, reg): + def __cinit__(self, reg): self.reg = reg include "errwarn.pxi"