diff options
| -rw-r--r-- | pyisda/curve.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyisda/curve.pyx b/pyisda/curve.pyx index 6456477..ab74fde 100644 --- a/pyisda/curve.pyx +++ b/pyisda/curve.pyx @@ -707,7 +707,7 @@ cdef class SpreadCurve(Curve): SpreadCurve instance = SpreadCurve.__new__(SpreadCurve) const unsigned char* cursor const char* src - char* dst = <char*>malloc(500) + char* dst TCurve* curve = <TCurve*>malloc(sizeof(TCurve)) size_t size Py_buffer* py_buf @@ -719,7 +719,7 @@ cdef class SpreadCurve(Curve): size = py_buf.len else: src = <bytes?>state - size = PyBytes_GET_SIZE(src) + size = PyBytes_GET_SIZE(state) with nogil: if compressed: dst = <char*>malloc(500) |
