diff options
| -rw-r--r-- | pyisda/curve.pyx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pyisda/curve.pyx b/pyisda/curve.pyx index 5ee9048..b839ee9 100644 --- a/pyisda/curve.pyx +++ b/pyisda/curve.pyx @@ -534,8 +534,6 @@ cdef class SpreadCurve(Curve): survival_probability = Curve.__forward_zero_price - @cython.boundscheck(False) - @cython.initializedcheck(False) def __getstate__(self): cdef: TCurve* curve = self._thisptr.get() @@ -549,8 +547,6 @@ cdef class SpreadCurve(Curve): memcpy(cursor, self.recovery_rates.get(), sizeof(double) * curve.fNumItems) return <bytes>buf[:buf_size] - @cython.initializedcheck(False) - @cython.cdivision(True) def __setstate__(self, bytes state): cdef: TCurve* curve = <TCurve*>malloc(sizeof(TCurve)) @@ -598,6 +594,7 @@ cdef class SpreadCurve(Curve): memcpy(&ticker_length, cursor, sizeof(size_t)) cursor += sizeof(size_t) instance.ticker = string(<char*>cursor, ticker_length) + cursor += ticker_length size = curve.fNumItems * sizeof(double) instance.recovery_rates = shared_ptr[double]( <double*>malloc(size), double_free) |
