diff options
author | Mark Florisson <markflorisson88@gmail.com> | 2012-01-22 13:25:34 +0000 |
---|---|---|
committer | Mark Florisson <markflorisson88@gmail.com> | 2012-01-22 19:04:22 +0000 |
commit | 59c8151f6fb80ffe337ac1509835379fefb87fff (patch) | |
tree | a79689b19b5b6bb8ec480d91e72145eefe55f7e0 /Cython/Compiler/MemoryView.py | |
parent | 06c0c96ba1c86adc14872bffe414600b086efe83 (diff) | |
download | cython-59c8151f6fb80ffe337ac1509835379fefb87fff.tar.gz |
Initialize allocated cython.array buffer with object dtype to None
Diffstat (limited to 'Cython/Compiler/MemoryView.py')
-rw-r--r-- | Cython/Compiler/MemoryView.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/MemoryView.py b/Cython/Compiler/MemoryView.py index 561110d22..ceda3c3b5 100644 --- a/Cython/Compiler/MemoryView.py +++ b/Cython/Compiler/MemoryView.py @@ -476,7 +476,7 @@ def assign_scalar(dst, scalar, code): p = slice_iter_obj.start_loops() if dtype.is_pyobject: - code.putln("Py_DECREF((PyObject *) %s);" % p) + code.putln("Py_DECREF(*(PyObject **) %s);" % p) code.putln("*((%s *) %s) = __pyx_temp_scalar;" % (type_decl, p)) |